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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x4d0
mov esi, esp
mov dword [esi + 0x4b8], ebp
call 0x41676c
pop eax
mov dword [esi + 0x4bc], esp
mov dword [esi + 0x4c8], 0xffffffff
mov dword [esi + 0x4c4], 0x417e10
mov dword [esi + 0x90], edx
mov dword [esi + 0x7c], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esi + 0x8c], eax
mov eax, dword fs:[0]
mov dword [esi + 0x4c0], eax
lea eax, [esi + 0x4c0]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x14]
mov ah, byte [ebp + 0x10]
lock inc dword [0x42d0f0]
jle 0x4172cd
mov edi, dword [0x42d148]
mov ebx, dword fs:[0x2c]
mov edi, dword [ebx + edi*4]
cmp byte [edi + 0x18], 0
jne 0x417359
mov edi, dword [0x42d148]
mov ebx, dword fs:[0x2c]
mov edi, dword [ebx + edi*4]
mov dword [esi + 0x58], 1
mov dword [esi + 0x5c], 0x42ac90
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], ecx
mov byte [esi + 0x68], ah
mov byte [esi + 0x69], al
inc dword [edi + 0x14]
mov byte [edi + 0x18], 1
mov eax, dword [0x42d0dc]
cmp eax, 0x3ffffffd
ja 0x416835
lea ecx, [eax + 1]
lock cmpxchg dword [0x42d0dc], ecx
je 0x41683a
call fcn.004199e0
movzx eax, byte [0x42d0e4]
mov eax, dword [esi + 0x90]
cmp dword [0x42d0e8], 0
mov eax, dword [eax + 0x10]
jne 0x416931
mov byte [esi + 3], 1
mov dword [esi + 0x4c8], 0
push dword [esi + 0x7c]
call eax
add esp, 4
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
mov cl, 3
cmp byte [esi + 0x69], 0
jne 0x416dd2
mov edi, dword [0x42d148]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + edi*4]
mov cl, 1
cmp dword [edi + 0x14], 1
ja 0x416dd2
movzx eax, byte [0x42d0d8]
mov cl, 1
movzx eax, al
mov eax, dword [eax*4 + 0x417744]
add eax, dword [esi + 0x8c]
jmp eax
mov byte [esi + 3], 1
mov dword [esi + 0x4c8], 0
push dword [esi + 0x7c]
call eax
add esp, 4
mov dword [esi + 0x58], eax
mov eax, dword [0x42d0e8]
mov ecx, dword [0x42d0ec]
mov dword [esi + 0x5c], edx
lea edx, [esi + 0x58]
mov byte [esi + 3], 1
push edx
push eax
call dword [ecx + 0x14]
add esp, 8
mov ecx, 0xffffffff
lock xadd dword [0x42d0dc], ecx
dec ecx
mov eax, ecx
and eax, 0xbfffffff
cmp eax, 0x80000000
jne 0x416996
mov byte [esi + 3], 0
mov dword [esi + 0x4c8], 0
call fcn.00419920
mov eax, dword [0x42d148]
mov ecx, dword fs:[0x2c]
cmp byte [ebp + 0x10], 0
mov eax, dword [ecx + eax*4]
mov dword [esi + 0x4c8], 0
mov byte [eax + 0x18], 0
je 0x4169d6
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x7c]
mov byte [esi + 3], 0
mov edx, dword [eax + 0xc]
call fcn.00414aa0
jmp 0x416f39
lea eax, [esi + 0xb8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0xb8], 0x42ad58
mov dword [esi + 0xbc], 1
mov dword [esi + 0xc8], 0
mov dword [esi + 0xc0], 4
mov byte [esi + 0x50], 0
mov dword [esi + 0xc4], 0
mov byte [esi + 3], 0
lea ecx, [esi + 0x34]
lea edx, [esi + 0x4c]
push eax
call fcn.0040f7e0
add esp, 4
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov byte [esi + 3], 0
call fcn.0040f970
mov ecx, 7
int 0x29
ud2
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x64]
mov dword [esi + 8], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x94], ecx
lea ecx, [esi + 0xa8]
mov edx, dword [edx + 0xc]
mov byte [esi + 3], 1
push eax
push ecx
call edx
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x20]
add esp, 8
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xac]
xor eax, 0x57a64178
xor ecx, 0xb98b1b71
or ecx, eax
jne 0x416e75
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
mov eax, 4
xor edx, 0xd6cb5d6d
xor ecx, 0x63eb502c
or ecx, edx
mov ecx, ebx
jne 0x416e75
mov ecx, dword [ecx]
mov eax, dword [ebx + eax]
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], eax
mov eax, dword [0x42d148]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
movzx eax, byte [eax + 0x20]
test eax, eax
je 0x416ede
cmp eax, 1
je 0x416efd
jmp 0x416f43
mov eax, dword [edi + 0xc]
mov byte [esi + 3], 1
lea ecx, [esi + 0x98]
push ebx
push ecx
call eax
mov ebx, dword [esi + 0x20]
add esp, 8
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
xor eax, 0x8cbb7d2f
xor ecx, 0xa0ff31d7
or ecx, eax
mov eax, 0xc
mov ecx, 0x42ab90
jne 0x416e41
mov edx, dword [esi + 0xa4]
mov edi, dword [esi + 0xa0]
xor edi, 0xeeecb488
xor edx, 0xda5bceeb
or edx, edi
jne 0x416e41
lea ecx, [ebx + 4]
mov eax, 8
jmp 0x416e3c
mov byte [esi + 3], 1
call fcn.0040fa60
mov eax, dword [0x42d148]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x20], 1
mov eax, dword [0x42d148]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax + 0x1c]
test edx, edx
jne 0x416f34
mov byte [esi + 3], 1
call fcn.00419560
mov eax, dword [0x42d148]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax + 0x1c]
lock inc dword [edx]
jg 0x416f3b
ud2
test edx, edx
jne 0x417036
mov eax, 9
mov ecx, 0x42ab9c
mov dword [esi + 0x20], 0
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], eax
lea eax, [esi + 0x74]
mov dword [esi + 0x34], 0x42abc0
mov dword [esi + 0x38], 4
mov dword [esi + 0x44], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 0
mov dword [esi + 0x4c8], 5
lea ecx, [esi + 0x4c]
lea edx, [esi + 0x18]
mov dword [esi + 0xb8], eax
lea eax, [esi + 0x94]
mov dword [esi + 0xbc], 0x411b30
mov dword [esi + 0xc0], eax
lea eax, [esi + 0x80]
mov dword [esi + 0xc4], 0x416460
mov dword [esi + 0xc8], eax
lea eax, [esi + 0xb8]
mov dword [esi + 0xcc], 0x411b30
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x40], 3
push eax
call fcn.0040f7e0
add esp, 4
movzx eax, byte [esi + 0x4c]
cmp al, 4
je 0x417095
cmp al, 3
jne 0x417095
mov eax, dword [esi + 0x50]
mov ecx, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [eax + 4]
mov dword [esi + 0x10], eax
mov eax, dword [eax]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x417022
mov dword [esi + 0x4c8], 9
push dword [esi + 0xc]
call eax
add esp, 4
mov eax, dword [esi + 0x10]
cmp dword [eax + 4], 0
je 0x417084
cmp dword [eax + 8], 9
jae 0x41706f
mov eax, dword [esi + 0xc]
jmp 0x417075
mov eax, dword [edx + 0x10]
mov dword [esi + 0x20], edx
test eax, eax
je 0x417054
cmp eax, 2
jne 0x417063
mov eax, 9
mov ecx, 0x42ab9c
jmp 0x416f54
mov eax, 4
mov ecx, str.main
jmp 0x416f54
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x14]
dec eax
jmp 0x416f54
mov eax, dword [esi + 0xc]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x42d108]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esi + 8]
push 0
push dword [0x42d108]
call dword [sym.imp.kernel32.dll_HeapFree]
movzx eax, byte [esi + 4]
mov ecx, dword [esi + 0x8c]
add ecx, dword [eax*4 + 0x417754]
jmp ecx
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], 0x42ac90
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], ecx
mov byte [esi + 0x44], ah
mov byte [esi + 0x45], al
lea eax, [esi + 0x34]
mov dword [esi + 0xb8], 0x42acd4
mov dword [esi + 0xbc], 2
mov dword [esi + 0xc8], 0
mov dword [esi + 0x74], 0
mov byte [esi + 0x78], 0
lea ecx, [esi + 0x4c]
lea edx, [esi + 0x74]
mov dword [esi + 0x58], eax
lea eax, [esi + 0x58]
mov dword [esi + 0x5c], 0x406c30
mov dword [esi + 0xc0], eax
lea eax, [esi + 0xb8]
mov dword [esi + 0xc4], 1
push eax
call fcn.0040f7e0
add esp, 4
movzx eax, byte [esi + 0x4c]
cmp al, 4
je 0x417422
mov edx, dword [esi + 0x50]
jmp 0x41741a
test edx, edx
je 0x417384
mov ebx, dword [edx + 4]
mov edi, dword [edx + 0xc]
cmp ebx, 1
je 0x41737c
test ebx, ebx
jne 0x417384
test edi, edi
jne 0x417384
mov edx, 1
xor edi, edi
jmp 0x417432
test edi, edi
je 0x41742b
xor edx, edx
mov dword [esi + 0x80], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x58], 1
mov dword [esi + 0x5c], 0x42ac90
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], ecx
mov byte [esi + 0x68], ah
mov byte [esi + 0x69], al
lea eax, [esi + 0x58]
mov dword [esi + 0xb8], 0x42ad18
mov dword [esi + 0xbc], 2
mov dword [esi + 0xc8], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 0
lea ecx, [esi + 0x74]
lea edx, [esi + 0x18]
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x50], 0x406c30
mov dword [esi + 0xc0], eax
lea eax, [esi + 0xb8]
mov dword [esi + 0xc4], 1
push eax
call fcn.0040f7e0
add esp, 4
movzx eax, byte [esi + 0x74]
cmp al, 4
je 0x417422
mov edx, dword [esi + 0x78]
movzx ecx, al
call fcn.004114b0
mov ecx, 7
int 0x29
ud2
mov edi, dword [edx]
mov edx, dword [edi]
mov edi, dword [edi + 4]
mov dword [esi + 0x80], edx
lea edx, [esi + 0x80]
mov dword [esi + 0x84], edi
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], 1
mov dword [esi + 0x3c], 4
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
lea edx, [esi + 0x34]
jmp 0x417397