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

Disassembly:
sub esp, 0xac
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [eax]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x34], esi
call fcn.00418830
cmp eax, esi
jne 0x418337
jmp 0x417942
xor esi, esi
cmp dword [edi + 0x24], esi
jne 0x418335
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov edx, eax
add eax, 1
mov dword [edi + 0x30], eax
mov ebx, ecx
lea eax, [esp + 0x20]
push eax
push ebx
push edx
push esi
push esi
push esi
adc ecx, esi
push esi
mov eax, edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ebx
mov dword [edi + 0x34], ecx
call fcn.004177b0
mov ecx, dword [edi + 0x70]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
cmp eax, esi
jne 0x417d99
cmp dword [esp + 0x20], 0
jne 0x417d99
mov edx, dword [esp + 0xc0]
mov eax, dword [edx + 8]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x64]
sub eax, dword [edi + 0x60]
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x417a10
mov ecx, dword [edi + 0x14]
mov edx, dword [edi]
mov eax, dword [ecx]
add edx, 0x10
call eax
mov dword [esp + 0x38], eax
test eax, eax
je 0x417cf1
mov ecx, dword [esp + 0x30]
mov dword [eax], 0
test ecx, ecx
je 0x417a06
mov dword [ecx], eax
jmp 0x417a10
mov ecx, dword [esp + 0xc0]
mov dword [ecx + 8], eax
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
test esi, esi
je 0x417a46
mov edx, dword [edi + 0x5c]
mov eax, dword [edi + 0x60]
lea ecx, [edx + eax + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x2c], ecx
jmp 0x417b45
mov ebx, dword [edi]
mov edx, dword [edi + 0xc]
mov ebp, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x14], edx
test ebx, ebx
je 0x417a8d
lea esp, [esp]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx]
mov edx, ebp
mov dword [esp + 0x14], ebx
call eax
mov ecx, dword [esp + 0x10]
add esi, ecx
add ebp, ecx
sub ebx, ecx
test eax, eax
jne 0x417c15
test ecx, ecx
je 0x417a8d
test ebx, ebx
jne 0x417a60
mov dword [esp + 0x14], 0
xor eax, eax
add dword [esp + 0x18], esi
adc dword [esp + 0x1c], eax
cmp dword [esp + 0x30], eax
jne 0x417aa9
mov dword [esp + 0x48], esi
add dword [edi + 0x68], esi
mov ebx, 1
adc dword [edi + 0x6c], eax
xor ecx, ecx
cmp esi, dword [edi]
setne cl
mov ebp, ecx
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x417ac8
mov dword [edi + 0x70], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417ae4
mov ebp, ebx
mov dword [edi + 0x48], eax
mov dword [edi + 0x70], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
sbb edx, dword [esp + 0x40]
mov dword [esp + 0xb8], edx
jne 0x417b01
cmp eax, ebx
jb 0x417b4e
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.004177b0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x417d99
cmp dword [esp + 0x20], eax
jne 0x417d3f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov ebp, dword [esp + 0x10]
mov ebx, 1
mov eax, dword [esp + 0x2c]
xor edx, edx
cmp dword [esp + 0x30], edx
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0x18]
sete dl
lea ecx, [esp + 0x84]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x98], ebx
push ecx
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0xc4]
mov edx, dword [edx + 4]
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x94], ebx
je 0x417c1e
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x8c]
xor edx, edx
cmp ecx, edx
je 0x417bdf
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push ebx
push edx
push eax
call fcn.0041af90
add dword [edi + 0x60], ebx
mov ecx, dword [esp + 0x34]
add esp, 0xc
xor edx, edx
mov eax, dword [esp + 0x94]
cmp eax, edx
jne 0x417c59
cmp ebp, edx
jne 0x417c66
cmp ebx, esi
jne 0x417c4c
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
mov dword [esp + 0x38], eax
cmp ecx, edx
je 0x4179d4
xor eax, eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
jmp 0x4179d0
mov dword [esp + 0x14], eax
jmp 0x417a95
mov dword [esp + 0x10], ebx
mov dword [esp + 0x64], ebx
xor ebx, ebx
cmp dword [esp + 0x28], ebx
je 0x417c41
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push esi
push ecx
push edx
call fcn.0041af90
add esp, 0xc
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
jmp 0x417d3f
mov dword [esp + 0x14], 0xb
jmp 0x417d99
cmp eax, 3
jne 0x417c66
mov dword [esp + 0x10], 1
mov dword [esp + 0x44], 1
cmp ebx, esi
jne 0x417c7d
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x417d3f
cmp eax, 3
jne 0x417cd6
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
cmp ecx, edx
je 0x417cb1
mov ecx, dword [esp + 0x2c]
mov eax, esi
sub eax, ebx
push eax
mov eax, dword [esp + 0x28]
lea edx, [ebx + ecx]
push edx
add ebx, eax
push ebx
call fcn.0041af90
mov ebx, dword [esp + 0x98]
add esp, 0xc
xor edx, edx
mov ecx, dword [esp + 0x2c]
sub esi, ebx
sub dword [esp + 0x18], esi
lea eax, [ebx + ecx]
mov dword [esp + 0x74], esi
sbb dword [esp + 0x1c], edx
mov dword [esp + 0x68], eax
cmp dword [esp + 0x30], edx
jne 0x417d3f
mov dword [esp + 0x48], ebx
jmp 0x417d3f
cmp ecx, edx
je 0x417ce4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
jmp 0x417d31
mov ecx, edi
call fcn.004178d0
xor edx, edx
cmp eax, edx
jne 0x417d00
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x78], eax
jmp 0x417d3f
mov ecx, dword [esp + 0x8c]
sub esi, ecx
sub dword [esp + 0x18], esi
mov dword [edi + 0x60], edx
push esi
sbb dword [esp + 0x20], edx
mov edx, dword [esp + 0x30]
add ecx, edx
push ecx
push eax
mov dword [edi + 0x64], esi
call fcn.0041af90
mov ebx, dword [esp + 0x98]
add esp, 0xc
xor edx, edx
cmp dword [esp + 0x30], edx
jne 0x417d3b
mov dword [esp + 0x48], ebx
mov dword [esp + 0x10], edx
cmp dword [esp + 0x14], 0
jne 0x417d99
lea ebx, [edi + 0xb0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x88], 0
je 0x417d80
mov eax, dword [esp + 0x50]
cmp eax, dword [edi + 0x94]
jb 0x417d80
ja 0x417d76
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [edi + 0x90]
jbe 0x417d80
mov dword [esp + 0x20], 1
jmp 0x417d88
mov dword [esp + 0x20], 0
mov esi, dword [edi + 0x9c]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x14], ebx
jne 0x417dda
cmp dword [esp + 0x44], ebx
je 0x417dd4
cmp dword [esp + 0x20], ebx
jne 0x417dda
mov ecx, dword [esp + 0xc0]
mov eax, dword [edi + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x1c]
mov eax, dword [eax + 4]
call eax
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x417de2
mov dword [esp + 0x44], ebx
jmp 0x417dda
cmp dword [esp + 0x20], ebx
je 0x417de2
mov dword [esp + 0x10], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x10], ebx
jne 0x417e5b
mov eax, dword [edi + 0x58]
cmp eax, dword [edi + 0x54]
jae 0x417e2c
cmp dword [esp + 0x34], ebx
je 0x417e2c
lea ecx, [eax + eax*4 + 0x19]
lea esi, [edi + ecx*8]
call fcn.00417670
cmp eax, ebx
jne 0x417e13
inc dword [edi + 0x58]
jmp 0x417e2c
mov ecx, dword [edi + 0x58]
cmp ecx, 1
jne 0x417e29
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], eax
jmp 0x417e5b
mov dword [edi + 0x54], ecx
mov edx, dword [esp + 0xc0]
mov ecx, dword [edx + 4]
inc ecx
cmp ecx, dword [edi + 0x58]
sbb eax, eax
and eax, ecx
add eax, 5
lea eax, [eax + eax*4]
lea eax, [edi + eax*8]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x2c], eax
call fcn.00418880
cmp eax, ebx
jne 0x418337
xor ecx, ecx
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x14], ecx
jne 0x417ff4
cmp dword [esp + 0x44], ecx
je 0x417ff4
cmp dword [esp + 0x28], ecx
jne 0x417ff4
mov edx, dword [esp + 0xc0]
mov edx, dword [edx + 8]
mov eax, 1
mov dword [esp + 0x24], edx
cmp eax, ecx
je 0x417ebc
mov edx, dword [esp + 0x48]
jmp 0x417ed8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
sub ecx, ebx
sbb eax, ebp
xor esi, esi
cmp esi, eax
jb 0x417ed8
ja 0x417ed6
cmp edx, ecx
jbe 0x417ed8
mov edx, ecx
add ebx, edx
adc ebp, 0
mov eax, 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x34], eax
cmp ebx, dword [esp + 0x18]
jne 0x417efa
cmp ebp, dword [esp + 0x1c]
je 0x417efc
xor eax, eax
mov esi, dword [edi + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [edi + 0x1c]
push eax
mov eax, dword [esp + 0xd0]
push edx
mov edx, dword [esp + 0x38]
add edx, 0x10
push edx
mov edx, dword [eax + 4]
mov eax, dword [esi + 8]
call eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x417fe3
cmp dword [esp + 0x34], eax
jne 0x417ff4
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
cmp ebx, dword [esp + 0x18]
jne 0x417f58
cmp ebp, dword [esp + 0x1c]
je 0x417ff4
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov ecx, ebx
sub ecx, dword [esp + 0x3c]
mov eax, ebp
sbb eax, dword [esp + 0x40]
sub edx, dword [esp + 0x6c]
sbb esi, dword [esp + 0x70]
test eax, eax
ja 0x417f88
jb 0x417f7f
cmp ecx, 1
jae 0x417f88
test esi, esi
ja 0x417f88
cmp edx, 1
jb 0x417fd0
lea ebx, [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x54]
push ebx
push esi
push edx
push eax
push ecx
mov eax, edi
call fcn.004177b0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x417ff4
cmp dword [esp + 0x20], eax
jne 0x417ff4
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
xor eax, eax
xor ecx, ecx
jmp 0x417eb2
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
mov esi, edi
call fcn.00417870
mov ecx, dword [esp + 0xc0]
mov ecx, dword [ecx + 0x20]
call fcn.00418830
xor ebx, ebx
cmp eax, ebx
jne 0x418337
mov edx, dword [esp + 0x7c]
mov ebp, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], edx
cmp dword [edi + 0x24], ebx
jne 0x418335
cmp dword [edi + 0x50], ebx
je 0x418036
mov dword [esp + 0x20], ebp
jmp 0x41807f
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x41804b
mov dword [edi + 0x50], ebp
mov dword [edi + 0x4c], eax
mov ecx, ebp
cmp eax, 2
je 0x41804f
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x418061
mov dword [edi + 0x50], ebp
mov dword [edi + 0x40], eax
mov dword [esp + 0x24], ebx
cmp ecx, ebx
je 0x41806f
mov dword [edi + 0x50], ebp
mov dword [edi + 0x38], ebp
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x64], ebx
je 0x41807f
mov dword [edi + 0x50], ebp
mov dword [edi + 0x3c], ebp
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x44], ebx
je 0x418163
cmp dword [esp + 0x20], ebx
je 0x4180a7
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
jmp 0x4180b7
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x3c]
lea ebp, [edi + 0xb0]
sbb eax, dword [esp + 0x40]
sub ebx, dword [esp + 0x6c]
push ebp
sbb edx, dword [esp + 0x74]
mov esi, ecx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb4], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [edi + 0xa0], esi
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb0]
adc dword [edi + 0xa4], eax
add dword [edi + 0xa8], ebx
adc dword [edi + 0xac], ecx
cmp dword [edi + 0x9c], 0
jne 0x41814b
mov ecx, dword [edi + 0x98]
test ecx, ecx
je 0x41814b
mov edx, dword [edi + 0xac]
mov eax, dword [edi + 0xa8]
push edx
mov edx, dword [edi + 0xa4]
push eax
mov eax, dword [edi + 0xa0]
push edx
mov edx, dword [ecx]
push eax
call edx
test eax, eax
je 0x41814b
mov dword [edi + 0x9c], 0xa
mov esi, dword [edi + 0x9c]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], esi
mov ebp, 1
xor ebx, ebx
mov esi, dword [esp + 0x10]
xor eax, eax
cmp esi, ebx
sete al
mov dword [esp + 0x80], eax
cmp dword [esp + 0x7c], ebx
je 0x418236
cmp dword [esp + 0x14], ebx
jne 0x418195
cmp dword [esp + 0x24], ebx
je 0x418195
cmp dword [esp + 0x20], ebx
jne 0x418195
mov eax, ebp
jmp 0x418197
xor eax, eax
mov ecx, dword [edi + 0x1c]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x84]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x74]
push edx
push eax
mov eax, dword [esp + 0xd4]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4181d5
mov dword [esp + 0x30], ebp
mov dword [edi + 0x50], ebp
jmp 0x4181e2
cmp dword [esp + 0x80], ebx
jne 0x418236
cmp esi, ebx
jne 0x418236
lea esi, [edi + 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x88], ebx
je 0x418211
mov ecx, dword [esp + 0x50]
cmp ecx, dword [edi + 0x94]
ja 0x41822b
jb 0x418211
mov edx, dword [esp + 0x4c]
cmp edx, dword [edi + 0x90]
jae 0x41822b
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [edi + 0x90], eax
mov dword [edi + 0x94], ecx
mov dword [edi + 0x88], ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x34], ebx
je 0x4182b1
cmp dword [esp + 0x44], ebx
je 0x418267
cmp dword [esp + 0x14], ebx
jne 0x418267
cmp dword [edi + 0x50], ebx
jne 0x418267
cmp dword [esp + 0x28], ebx
jne 0x418267
cmp dword [esp + 0x20], ebx
jne 0x418267
cmp dword [edi + 0x84], ebx
jne 0x41827f
cmp dword [esp + 0x30], ebx
je 0x4182b1
cmp dword [edi + 0x84], ebx
jne 0x41827f
mov edx, dword [esp + 0xc0]
mov eax, dword [edx + 4]
mov dword [edi + 0x80], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, eax
or edx, ecx
jne 0x418291
cmp esi, ebx
jne 0x4182c5
mov edx, dword [esp + 0xc0]
mov esi, dword [esp + 0x48]
mov dword [edx + 0xc], esi
mov esi, dword [esp + 0x10]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
add dword [edi + 0x84], ebp
jmp 0x4182b8
mov edx, dword [esp + 0xc0]
cmp esi, ebx
jne 0x4182cc
mov ecx, dword [esp + 0x2c]
add ecx, 0x20
jmp 0x4182f4
mov edx, dword [esp + 0xc0]
cmp dword [esp + 0x80], ebx
je 0x4182e6
lea ecx, [edi + 0xe8]
call fcn.00418880
cmp eax, ebx
jne 0x418337
jmp 0x4182ee
cmp dword [edx + 4], ebx
je 0x418335
mov dword [edi + 0x24], ebp
lea ecx, [edi + 0xe4]
call fcn.00418880
cmp eax, ebx
jne 0x418337
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x34], ebx
call fcn.00418830
cmp eax, ebx
je 0x417940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 4