Function at 0x476d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eb0e7
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor edi, edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x1e], edi
mov word [esp + 0x1c], di
call fcn.0045c040
mov dword [esp + 0x64], eax
mov byte [eax + 0x21], 1
mov eax, dword [esp + 0x64]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x64]
mov dword [eax], eax
mov eax, dword [esp + 0x64]
mov dword [eax + 8], eax
mov dword [esp + 0x68], edi
mov eax, dword [esi + 0x10]
add esi, 0xc
mov dword [esp + 0x78], edi
mov edi, dword [eax]
mov ebx, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
lea esp, [esp]
test ebx, ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
je 0x476def
cmp ebx, esi
je 0x476df4
call fcn.004c000c
cmp edi, dword [esp + 0x30]
je 0x476e48
test ebx, ebx
jne 0x476e03
call fcn.004c000c
cmp edi, dword [ebx + 4]
jne 0x476e0d
call fcn.004c000c
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x50], edx
call fcn.004781a0
lea ecx, [esp + 0x14]
call fcn.0048ed20
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x476de0
mov edx, dword [esp + 0x64]
mov ebx, dword [edx]
lea esi, [esp + 0x60]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
lea ebx, [ebx]
test esi, esi
mov edi, dword [esp + 0x64]
je 0x476e70
lea eax, [esp + 0x60]
cmp esi, eax
je 0x476e75
call fcn.004c000c
cmp ebx, edi
je 0x476fdf
test esi, esi
jne 0x476e86
call fcn.004c000c
cmp ebx, dword [esi + 4]
jne 0x476e90
call fcn.004c000c
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x476fa5
movzx eax, word [esi + 0x10]
movzx eax, ax
cmp eax, 2
jl 0x476eb0
cmp eax, 4
jle 0x476fa5
cmp byte [esi + 0x68], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jne 0x476fa5
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x2c]
push edx
call eax
fcomp qword [0x500fb8]
fnstsw ax
test ah, 0x41
jne 0x476fa5
mov ecx, dword [esi + 0x1e]
mov dx, word [esi + 0x22]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x16], ecx
lea ecx, [esp + 0x14]
mov word [esp + 0x14], dx
add edi, 0x28
push ecx
lea edx, [esp + 0x48]
push edx
mov ecx, edi
mov dword [esp + 0x40], eax
call fcn.004415b0
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x476f22
cmp eax, edi
je 0x476f27
call fcn.004c000c
mov eax, dword [esp + 0x38]
cmp dword [ebx + 4], eax
jne 0x476f6d
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x3c]
add edi, 0x38
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x58]
mov dword [esp + 0x44], ecx
push eax
mov ecx, edi
call fcn.00477520
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x476f5b
cmp eax, edi
je 0x476f60
call fcn.004c000c
mov ecx, dword [esp + 0x40]
cmp dword [ebx + 4], ecx
jne 0x476f6d
mov bl, 1
jmp 0x476f6f
xor bl, bl
call fcn.00419310
cmp byte [eax + 0xa], 0
je 0x476f87
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x80], 0
jne 0x476fa1
test bl, bl
je 0x476fa5
movzx eax, word [esi + 0x1c]
movzx ecx, ax
cmp cx, 2
je 0x476fa5
movzx eax, ax
cmp ax, 3
jmp 0x476fa3
test bl, bl
jne 0x476fbb
lea ecx, [esp + 0x24]
call fcn.0045b500
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x476e60
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov cx, word [esp + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x64]
mov edx, dword [eax]
push eax
mov word [esi + 4], cx
lea ecx, [esp + 0x64]
push ecx
mov edi, ecx
push edx
push edi
jmp 0x477005
mov ecx, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x64]
mov dx, word [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx]
push edi
lea eax, [esp + 0x64]
push eax
mov word [esi + 4], dx
mov edx, eax
push ecx
push edx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], 0xffffffff
call fcn.0045e420
mov eax, dword [esp + 0x64]
push eax
call fcn.004aef39
mov eax, esi
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4