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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x515630
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 0x47357b
mov ecx, dword [esp + 0x78]
xor edi, edi
cmp ecx, edi
je 0x47357b
mov dword [esp + 0x78], 1
jmp 0x473598
xor edi, edi
cmp eax, 0x204
mov dword [esp + 0x78], edi
jne 0x473598
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x7c], 1
cmp eax, edi
jne 0x47359c
mov dword [esp + 0x7c], edi
cmp dword [esp + 0x74], edi
jne 0x4735b2
cmp dword [esp + 0x78], edi
jne 0x4735b2
cmp dword [esp + 0x7c], edi
je 0x4739e8
lea ecx, [esp + 0x44]
call fcn.0046f9e0
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x44]
push eax
mov dword [esp + 0x68], edi
call fcn.00472cb0
mov ecx, dword [esp + 0x48]
cmp ecx, edi
jne 0x4735db
mov dword [esp + 0x20], edi
jmp 0x4735e8
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 0x4739ca
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x40]
jmp 0x47360f
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + eax*4]
cmp esi, edi
je 0x4739b5
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 0x47371f
mov eax, dword [esp + 0x70]
cmp eax, edi
je 0x473723
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], edi
mov ecx, dword [eax]
push edx
push 0x521208
push eax
call dword [ecx]
mov eax, dword [esp + 0x6c]
cmp eax, edi
je 0x4736b3
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.0046c4c0
test eax, eax
jge 0x4736df
cmp eax, 0x80004002
je 0x4736df
push eax
call fcn.00512a47
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47370e
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 0x47371f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x78], edi
je 0x473836
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 0x473836
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 0x473797
push 0x80004003
call fcn.00512a47
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 0x4737d2
push 0x80004003
call fcn.00512a47
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 0x47380d
push 0x80004003
call fcn.00512a47
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 0x4739a4
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 0x5211a8
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4738df
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 0x4739a0
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 0x473925
push 0x80004003
call fcn.00512a47
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 0x473960
push 0x80004003
call fcn.00512a47
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x521208
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47399c
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 0x4739b5
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 0x47360b
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], 3
call fcn.00472f10
mov eax, dword [esp + 0x48]
push eax
call fcn.00512b1a
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