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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, ecx
mov dword [esp + 0x20], edx
mov ecx, dword [ebp + 8]
push ebx
push esi
cmp dword [eax + 0x24], 0
mov ebx, dword [eax + 0x1b4]
mov esi, dword [eax]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], esi
mov dword [eax + 0x1b4], 0
jne 0x4763da
test ebx, ebx
je 0x4763da
mov eax, dword [ebx]
mov edi, 0xfff0bdc0
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edi
test ebx, ebx
je 0x476070
mov ecx, dword [esi + 0x14]
xor edi, edi
mov dword [esp + 0x18], edi
test ecx, ecx
jle 0x476070
mov eax, dword [esi + 0x10]
add eax, 0xc
nop dword [eax]
cmp dword [eax], ebx
je 0x47606c
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x476060
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0xc]
mov dword [ebx + 0x1c], edx
test edx, edx
je 0x47608e
nop dword [eax + eax]
mov dword [edx + 4], ebx
mov edx, dword [edx + 0x1c]
test edx, edx
jne 0x476080
mov dword [esp + 0x2c], edx
mov ecx, dword [ebx]
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x4760af
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4760a0
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], ecx
mov ecx, edi
mov ebx, dword [ebx + 0x1c]
mov eax, dword [eax]
shl ecx, 4
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], 0x53c35c
mov eax, dword [eax + 0x10]
add ecx, eax
mov dword [esp + 0x10], ebx
mov eax, dword [ecx]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], eax
xor eax, eax
cmp edi, 1
sete al
mov dword [esp + 0x3c], eax
test ebx, ebx
je 0x476172
nop
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x34]
call fcn.00449700
test eax, eax
jne 0x4763d6
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0x34]
call fcn.00449830
test eax, eax
jne 0x4763d6
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x47615b
xor esi, esi
lea edi, [ebx + 4]
cmp dword [ebx], esi
jle 0x47615b
nop dword [eax + eax]
mov edx, dword [edi]
lea ecx, [esp + 0x34]
call fcn.00449830
test eax, eax
jne 0x4763d6
inc esi
add edi, 0x18
cmp esi, dword [ebx]
jl 0x476140
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x476100
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
lea ecx, [esp + 0x34]
mov edx, dword [ebx + 0xc]
call fcn.00449830
test eax, eax
jne 0x4763da
mov al, byte [esi + 0x9d]
test al, al
jne 0x476362
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4761cd
cmp dword [ecx + 0x78], eax
jne 0x4761b8
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x4761b8
mov byte [ecx + 0x17], 1
call fcn.00425fe0
mov dword [esp + 0xc], eax
test eax, eax
je 0x4763da
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x78]
mov edx, ecx
test eax, eax
mov ecx, edi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x30], edx
mov ecx, dword [edx + 0x5c]
test ecx, eax
jne 0x476201
bts ecx, edi
mov dword [edx + 0x5c], ecx
cmp edi, 1
jne 0x476201
mov ecx, edx
call fcn.004519b0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 0x58]
bts eax, edi
mov dword [edx + 0x58], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x476223
xor edi, edi
jmp 0x476257
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, esi
call fcn.00405440
mov edi, eax
add esp, 8
test edi, edi
je 0x476257
push dword [esp + 0x10]
push dword [esp + 0x20]
push edi
call fcn.004e8950
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [eax + edi], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x20]
push edi
push dword [ebx + 4]
push dword [esp + 0x2c]
push 0x5398b4
push dword [eax + ecx]
mov eax, dword [esp + 0x28]
push 0x53c440
push eax
call fcn.0044a1b0
add esp, 0x1c
test edi, edi
je 0x4762c1
cmp dword [esi + 0x1d0], 0
je 0x476298
mov edx, edi
mov ecx, esi
call fcn.004050c0
jmp 0x4762c1
cmp edi, dword [esi + 0x128]
jb 0x4762b8
cmp edi, dword [esi + 0x12c]
jae 0x4762b8
mov eax, dword [esi + 0x124]
mov dword [edi], eax
mov dword [esi + 0x124], edi
jmp 0x4762c1
push edi
call fcn.00405050
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov edi, dword [ecx + 0x88]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [eax]
mov eax, dword [ecx + 0xc]
inc edx
cmp dword [eax + 0x30], edi
jg 0x476301
mov edi, dword [esp + 0x18]
push edx
push 1
push edi
mov edx, 0x66
call fcn.00426240
add esp, 0xc
jmp 0x476337
lea eax, [edi + 1]
mov dword [ecx + 0x88], eax
lea ecx, [edi + edi*4]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [eax + 0x58]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x24]
push 0x53c480
push esi
call fcn.00407470
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, edi
push eax
call fcn.00426670
mov al, byte [esi + 0x9d]
add esp, 4
test al, al
je 0x4763da
mov eax, dword [esi + 0x10]
mov edi, ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ebx
mov ecx, dword [eax + ecx + 0xc]
add ecx, 0x28
call fcn.00409760
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4763b0
cmp byte [esi + 0x49], 0
jne 0x4763da
cmp byte [esi + 0x4a], 0
jne 0x4763da
cmp dword [esi + 0xac], 0
mov byte [esi + 0x49], 1
jle 0x4763a8
mov dword [esi + 0x100], 1
inc dword [esi + 0x108]
jmp 0x4763da
mov ecx, dword [edi + 0x18]
cmp dword [edi + 0x14], ecx
jne 0x4763da
mov edx, dword [edi + 4]
add ecx, 8
push 0
call fcn.00409680
add esp, 4
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x44]
mov dword [edi + 0x20], eax
mov dword [esi + 0x44], edi
jmp 0x4763da
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov edx, ebx
call fcn.00476410
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
call fcn.004757e0
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret