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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54ab81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [esp + 0x14], edi
mov dword [edi + 8], ebx
mov dword [esp + 0x9c], 1
lea eax, [esp + 0x13]
push eax
push 0x569bc8
lea ecx, [esp + 0x5c]
call fcn.00405170
mov byte [esp + 0x9c], 2
push 0x56e834
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.0040c490
add esp, 0xc
mov byte [esp + 0x9c], 3
push eax
lea ecx, [esp + 0x44]
call fcn.0043c800
mov byte [esp + 0x9c], 6
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x476719
push eax
call fcn.004ed9bb
add esp, 4
mov byte [esp + 0x9c], 5
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x476732
push eax
call fcn.004ed9bb
add esp, 4
lea edx, [esp + 0x13]
push edx
push 0x56e824
lea ecx, [esp + 0x34]
call fcn.00405170
mov byte [esp + 0x9c], 9
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x48]
call fcn.0043bc90
mov byte [esp + 0x9c], 0xb
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x476779
push eax
call fcn.004ed9bb
add esp, 4
lea ecx, [esp + 0x38]
xor ebp, ebp
call fcn.00439360
test eax, eax
jle 0x476a57
lea edx, [esp + 0x7c]
lea eax, [esp + 0x84]
mov ecx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
push ebp
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x40]
call fcn.0043be00
mov byte [esp + 0x9c], 0xd
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0x9c], 0xf
lea ecx, [esp + 0x84]
call fcn.00409000
mov byte [esp + 0x9c], 0x11
lea eax, [esp + 0x13]
push eax
push 0x56a80c
lea ecx, [esp + 0x50]
call fcn.00405170
mov byte [esp + 0x9c], 0x12
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0043b7a0
mov dword [esp + 0x78], eax
mov byte [esp + 0x9c], 0x11
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x47682a
push eax
call fcn.004ed9bb
add esp, 4
lea edx, [esp + 0x13]
push edx
push 0x56a06a
lea ecx, [esp + 0x68]
call fcn.00405170
mov byte [esp + 0x9c], 0x14
lea eax, [esp + 0x13]
push eax
push 0x56e81c
lea ecx, [esp + 0x5c]
call fcn.00405170
mov byte [esp + 0x9c], 0x15
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x38]
call fcn.0043b740
mov byte [esp + 0x9c], 0x16
lea ecx, [esp + 0x84]
cmp eax, ecx
je 0x4768a3
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0x13]
push edx
push ecx
push eax
lea ecx, [esp + 0x90]
call fcn.00409410
mov byte [esp + 0x9c], 0x15
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x4768bc
push eax
call fcn.004ed9bb
add esp, 4
mov byte [esp + 0x9c], 0x14
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x4768d5
push eax
call fcn.004ed9bb
add esp, 4
mov byte [esp + 0x9c], 0x11
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x4768ee
push eax
call fcn.004ed9bb
add esp, 4
push 0x20
call fcn.004ed9ad
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x9c], 0x1a
cmp eax, ebx
je 0x476946
lea ecx, [eax + 4]
mov dword [eax], 0x56a594
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [esp + 0x28], ecx
mov dword [ecx + 8], ebx
mov byte [esp + 0x9c], 0x1c
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov byte [esp + 0x9c], 0x1d
mov dword [eax], 0x56e7c4
mov byte [esp + 0x9c], 0x1a
jmp 0x476948
xor eax, eax
mov byte [esp + 0x9c], 0x11
push eax
lea ecx, [esp + 0x80]
call fcn.00475a80
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
call dword [eax + 0x34]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x4769a1
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x9c], 0x1e
cmp eax, ebx
je 0x476993
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
call fcn.00475da0
mov byte [esp + 0x9c], 0x11
add dword [edi + 4], 0x18
jmp 0x4769ba
push 1
push 1
lea edx, [esp + 0x1b]
push edx
lea ecx, [esp + 0x84]
push ecx
push eax
mov ecx, edi
call fcn.00476470
mov byte [esp + 0x9c], 0x1f
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x4769d6
push eax
call fcn.004ed9bb
add esp, 4
mov byte [esp + 0x9c], 0xd
mov esi, dword [esp + 0x80]
cmp esi, ebx
je 0x476a0f
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x476a0f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x476a0f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov byte [esp + 0x9c], 0xb
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x476a45
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x476a45
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x476a45
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
lea ecx, [esp + 0x38]
inc ebp
call fcn.00439360
cmp ebp, eax
jl 0x4767a5
mov byte [edi + 0xc], bl
mov dword [edi + 0x10], 0xfffffc19
mov byte [esp + 0x9c], 5
mov esi, dword [esp + 0x3c]
or ebp, 0xffffffff
cmp esi, ebx
je 0x476a98
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x476a98
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x476a98
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov byte [esp + 0x9c], 1
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x476acc
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x476acc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x476acc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov dword [esp + 0x9c], ebp
mov ecx, dword [esp + 0x94]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret