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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50afc0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00470f90
call fcn.00471ee0
lea esi, [ebp - 0x50]
call fcn.0046a260
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov ecx, 0x51a1b4
mov dword [ebp - 4], edi
call fcn.004595b0
mov byte [ebp - 4], 1
mov esi, dword [0x55ad8c]
mov eax, dword [esi + 0x2c]
cmp eax, 4
jle 0x470b75
dec eax
mov dword [ebp - 0x14], eax
cmp eax, 3
jle 0x470b62
mov ebx, eax
mov edi, ebx
imul edi, edi, 0x2c
inc ebx
cmp ebx, eax
jb 0x470b6b
cmp ebx, 1
jb 0x470b6b
mov eax, dword [esi + 0x2c]
cmp ebx, eax
ja 0x470b6b
sub eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x28]
add eax, edi
call fcn.0046a300
cmp dword [ebp - 0x1c], 0
jbe 0x470b47
mov eax, dword [esi + 0x28]
lea ecx, [eax + edi + 0x2c]
lea edx, [eax + edi]
mov eax, dword [ebp - 0x1c]
call fcn.0046d560
mov eax, dword [ebp - 0x14]
dec dword [esi + 0x2c]
mov esi, dword [0x55ad8c]
dec eax
dec ebx
sub edi, 0x2c
mov dword [ebp - 0x14], eax
cmp eax, 3
jg 0x470b10
xor edi, edi
mov dword [ebp - 0x1c], 4
jmp 0x470b78
push 0x80070057
call fcn.0045a440
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x1c], edi
jle 0x470f42
mov dword [ebp - 0x18], edi
jmp 0x470b96
mov esi, dword [0x55ad8c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [esi + 0x2c]
jae 0x470b6b
mov edi, dword [esi + 0x28]
add edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x4c]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x50], edx
cmp eax, esi
je 0x470c01
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x470bf4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470bf4
call fcn.0045cfd0
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x470be9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x4c], ecx
jmp 0x470c01
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.004594c0
mov ecx, dword [edi + 8]
mov esi, dword [ebp - 0x48]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x470c56
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x470c49
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470c49
call fcn.0045cfd0
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x470c3e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x48], ecx
jmp 0x470c56
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.004594c0
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x44]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x470cab
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x470c9e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470c9e
call fcn.0045cfd0
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x470c93
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x44], ecx
jmp 0x470cab
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.004594c0
mov ecx, dword [edi + 0x10]
mov esi, dword [ebp - 0x40]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x470d00
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x470cf3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470cf3
call fcn.0045cfd0
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x470ce8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x40], ecx
jmp 0x470d00
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004594c0
mov ecx, dword [edi + 0x14]
mov esi, dword [ebp - 0x3c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x470d55
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x470d48
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470d48
call fcn.0045cfd0
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x470d3d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp - 0x3c], ecx
jmp 0x470d55
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.004594c0
mov ecx, dword [edi + 0x18]
mov esi, dword [ebp - 0x38]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x470da9
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x470d9c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470d9c
call fcn.0045cfd0
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x470d91
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x20]
jmp 0x470da9
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x38]
push ecx
call fcn.004594c0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov esi, dword [ebp - 0x2c]
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x34], edx
cmp eax, esi
je 0x470e09
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x470dfc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x470dfc
call fcn.0045cfd0
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x470df1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x20]
jmp 0x470e09
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004594c0
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x10]
mov dl, byte [edi + 0x28]
add eax, 0xfffffff0
add esi, 0xfffffff0
mov byte [ebp - 0x28], dl
cmp eax, esi
je 0x470e63
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x470e53
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x470e53
call fcn.0045cfd0
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x470e4b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x470e63
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004594c0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx + 0x70]
mov edx, dword [edx + 0x3c]
add ecx, 0x70
add eax, 0x3e8
push eax
call edx
mov esi, eax
test esi, esi
je 0x470f2e
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 1
mov ecx, esi
call edx
mov edx, dword [ebp - 0x10]
lea edi, [esi + 0x78]
test edx, edx
jne 0x470e9d
xor eax, eax
jmp 0x470eb1
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x470ea2
sub eax, ebx
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.004594c0
cmp byte [esi + 0x24], 0
je 0x470ef2
cmp byte [esi + 0x25], 0
je 0x470ef2
cmp byte [esi + 0x26], 0
je 0x470ef2
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x470ef2
mov eax, dword [esi + 4]
test eax, eax
je 0x470ef2
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
cmp byte [esi + 0x24], 0
mov byte [esi + 0x74], 1
je 0x470f2e
cmp byte [esi + 0x25], 0
je 0x470f2e
cmp byte [esi + 0x26], 0
je 0x470f2e
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x470f2e
mov eax, dword [esi + 4]
test eax, eax
je 0x470f2e
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], 0x2c
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x1c]
jl 0x470b90
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470f65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.0046a300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4