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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5202c0
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x4c
cmp eax, 0x201
push ebx
push ebp
push esi
push edi
jne 0x475c6b
mov ecx, dword [esp + 0x78]
xor edi, edi
cmp ecx, edi
je 0x475c6b
mov dword [esp + 0x78], 1
jmp 0x475c88
xor edi, edi
cmp eax, 0x204
mov dword [esp + 0x78], edi
jne 0x475c88
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x7c], 1
cmp eax, edi
jne 0x475c8c
mov dword [esp + 0x7c], edi
cmp dword [esp + 0x74], edi
jne 0x475ca2
cmp dword [esp + 0x78], edi
jne 0x475ca2
cmp dword [esp + 0x7c], edi
je 0x4760d8
lea ecx, [esp + 0x44]
call fcn.00472080
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x44]
push eax
mov dword [esp + 0x68], edi
call fcn.004753a0
mov ecx, dword [esp + 0x48]
cmp ecx, edi
jne 0x475ccb
mov dword [esp + 0x20], edi
jmp 0x475cd8
mov eax, dword [esp + 0x4c]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
xor eax, eax
cmp edx, edi
mov word [esp + 0x24], 9
mov dword [esp + 0x1c], eax
jle 0x4760ba
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x40]
jmp 0x475cff
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + eax*4]
cmp esi, edi
je 0x4760a5
lea edx, [esp + 0x70]
mov dword [esp + 0x70], edi
mov ecx, dword [esi]
push edx
push esi
mov byte [esp + 0x6c], 1
call dword [ecx + 0x24]
cmp dword [esp + 0x74], edi
je 0x475e0f
mov eax, dword [esp + 0x70]
cmp eax, edi
je 0x475e13
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], edi
mov ecx, dword [eax]
push edx
push 0x52c380
push eax
call dword [ecx]
mov eax, dword [esp + 0x6c]
cmp eax, edi
je 0x475da3
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edi, esp
mov edx, dword [eax]
push eax
mov dword [edi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], ecx
xor ecx, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
call dword [edx + 0x88]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov eax, dword [esp + 0x7c]
mov edi, esp
push eax
mov edx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], ecx
xor ecx, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
call dword [edx + 0x80]
mov eax, dword [esp + 0x6c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esp + 0x10], 0
lea eax, [esp + 0x70]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x68], 2
call fcn.0046e870
test eax, eax
jge 0x475dcf
cmp eax, 0x80004002
je 0x475dcf
push eax
call fcn.0051d6c7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x475dfe
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edi, esp
mov edx, dword [eax]
push eax
mov dword [edi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], ecx
xor ecx, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
call dword [edx + 0x94]
mov eax, dword [esp + 0x10]
xor edi, edi
mov byte [esp + 0x64], 1
cmp eax, edi
je 0x475e0f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x78], edi
je 0x475f26
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov eax, dword [esi]
xor edi, edi
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], edx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
call dword [eax + 0x154]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x475f26
mov ebx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax]
push eax
mov dword [edx], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x44]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ebx
call dword [ecx + 0x84]
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x475e87
push 0x80004003
call fcn.0051d6c7
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax]
push eax
mov dword [edx], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x44]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ebx
call dword [ecx + 0xb0]
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x475ec2
push 0x80004003
call fcn.0051d6c7
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax]
push eax
mov dword [edx], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x44]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ebx
call dword [ecx + 0x11c]
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x475efd
push 0x80004003
call fcn.0051d6c7
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax]
push eax
mov dword [edx], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x44]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ebx
call dword [ecx + 0x94]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x476094
mov edi, 9
sub esp, 0x10
mov word [esp + 0x44], di
mov ebx, dword [esp + 0x44]
mov edx, esp
mov ecx, dword [esi]
xor eax, eax
push esi
mov dword [edx], ebx
mov ebx, dword [esp + 0x4c]
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebp
call dword [ecx + 0x15c]
sub esp, 0x10
mov word [esp + 0x44], di
mov edi, dword [esp + 0x44]
mov edx, esp
mov ecx, dword [esi]
xor eax, eax
mov dword [edx], edi
push esi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebp
call dword [ecx + 0x154]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov eax, dword [eax + ecx*4]
lea ecx, [esp + 0x14]
push ecx
push 0x52c320
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x475fcf
sub esp, 0x10
mov edx, dword [eax]
mov esi, esp
xor ecx, ecx
push eax
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebp
call dword [edx + 0x78]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x476090
sub esp, 0x10
mov edx, dword [eax]
mov esi, esp
xor ecx, ecx
push eax
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebp
call dword [edx + 0x8c]
mov eax, dword [esp + 0x70]
xor esi, esi
test eax, eax
mov word [esp + 0x34], 9
jne 0x476015
push 0x80004003
call fcn.0051d6c7
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax]
push eax
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
mov dword [edx + 0xc], ebp
call dword [ecx + 0x94]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], 0
test eax, eax
jne 0x476050
push 0x80004003
call fcn.0051d6c7
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x52c380
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47608c
sub esp, 0x10
mov edx, dword [eax]
mov esi, esp
xor ecx, ecx
push eax
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebp
call dword [edx + 0x160]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x30]
xor edi, edi
mov byte [esp + 0x64], 0
cmp eax, edi
je 0x4760a5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x475cfb
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], 3
call fcn.00475600
mov eax, dword [esp + 0x48]
push eax
call fcn.0051d79a
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret