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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x521420
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 0x47602b
mov ecx, dword [esp + 0x78]
xor edi, edi
cmp ecx, edi
je 0x47602b
mov dword [esp + 0x78], 1
jmp 0x476048
xor edi, edi
cmp eax, 0x204
mov dword [esp + 0x78], edi
jne 0x476048
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x7c], 1
cmp eax, edi
jne 0x47604c
mov dword [esp + 0x7c], edi
cmp dword [esp + 0x74], edi
jne 0x476062
cmp dword [esp + 0x78], edi
jne 0x476062
cmp dword [esp + 0x7c], edi
je 0x476498
lea ecx, [esp + 0x44]
call fcn.004723f0
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x44]
push eax
mov dword [esp + 0x68], edi
call fcn.00475760
mov ecx, dword [esp + 0x48]
cmp ecx, edi
jne 0x47608b
mov dword [esp + 0x20], edi
jmp 0x476098
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 0x47647a
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x40]
jmp 0x4760bf
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + eax*4]
cmp esi, edi
je 0x476465
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 0x4761cf
mov eax, dword [esp + 0x70]
cmp eax, edi
je 0x4761d3
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], edi
mov ecx, dword [eax]
push edx
push 0x52e380
push eax
call dword [ecx]
mov eax, dword [esp + 0x6c]
cmp eax, edi
je 0x476163
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.0046eaf0
test eax, eax
jge 0x47618f
cmp eax, 0x80004002
je 0x47618f
push eax
call fcn.0051e127
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4761be
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 0x4761cf
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x78], edi
je 0x4762e6
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 0x4762e6
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 0x476247
push 0x80004003
call fcn.0051e127
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 0x476282
push 0x80004003
call fcn.0051e127
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 0x4762bd
push 0x80004003
call fcn.0051e127
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 0x476454
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 0x52e320
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47638f
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 0x476450
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 0x4763d5
push 0x80004003
call fcn.0051e127
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 0x476410
push 0x80004003
call fcn.0051e127
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x52e380
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47644c
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 0x476465
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 0x4760bb
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], 3
call fcn.004759c0
mov eax, dword [esp + 0x48]
push eax
call fcn.0051e1fa
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