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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50f390
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 0x470e0b
mov ecx, dword [esp + 0x78]
xor edi, edi
cmp ecx, edi
je 0x470e0b
mov dword [esp + 0x78], 1
jmp 0x470e28
xor edi, edi
cmp eax, 0x204
mov dword [esp + 0x78], edi
jne 0x470e28
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x7c], 1
cmp eax, edi
jne 0x470e2c
mov dword [esp + 0x7c], edi
cmp dword [esp + 0x74], edi
jne 0x470e42
cmp dword [esp + 0x78], edi
jne 0x470e42
cmp dword [esp + 0x7c], edi
je 0x471278
lea ecx, [esp + 0x44]
call fcn.0046d240
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x44]
push eax
mov dword [esp + 0x68], edi
call fcn.00470540
mov ecx, dword [esp + 0x48]
cmp ecx, edi
jne 0x470e6b
mov dword [esp + 0x20], edi
jmp 0x470e78
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 0x47125a
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x40]
jmp 0x470e9f
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + eax*4]
cmp esi, edi
je 0x471245
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 0x470faf
mov eax, dword [esp + 0x70]
cmp eax, edi
je 0x470fb3
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], edi
mov ecx, dword [eax]
push edx
push 0x51b1f0
push eax
call dword [ecx]
mov eax, dword [esp + 0x6c]
cmp eax, edi
je 0x470f43
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.00469d30
test eax, eax
jge 0x470f6f
cmp eax, 0x80004002
je 0x470f6f
push eax
call fcn.0050c8bb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x470f9e
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 0x470faf
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x78], edi
je 0x4710c6
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 0x4710c6
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 0x471027
push 0x80004003
call fcn.0050c8bb
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 0x471062
push 0x80004003
call fcn.0050c8bb
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 0x47109d
push 0x80004003
call fcn.0050c8bb
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 0x471234
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 0x51b190
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47116f
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 0x471230
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 0x4711b5
push 0x80004003
call fcn.0050c8bb
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 0x4711f0
push 0x80004003
call fcn.0050c8bb
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x51b1f0
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47122c
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 0x471245
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 0x470e9b
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], 3
call fcn.004707a0
mov eax, dword [esp + 0x48]
push eax
call fcn.0050c98e
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