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

Disassembly:
sub esp, 0x90
push ebp
mov ebp, ecx
push esi
push edi
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x417db9
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 0xd20]
test eax, eax
je 0x417db1
cmp eax, edx
jne 0x417db1
mov eax, dword [eax + 0x10]
mov esi, dword [edx + 0x10]
cmp eax, esi
jne 0x417db1
mov eax, dword [ebp + 0x114]
test ah, 0x10
jne 0x417db1
mov eax, dword [ecx + 0xd40]
test eax, eax
je 0x417db1
mov edx, dword [ecx]
call dword [edx]
test eax, eax
je 0x417db1
mov eax, 1
jmp 0x417db3
xor eax, eax
mov dword [ebp + 0x1cc], eax
mov eax, dword [esp + 0xa0]
lea edi, [ebp + 0x1d4]
push eax
mov ecx, edi
mov dword [esp + 0x58], edi
call fcn.0040d1e0
mov ecx, ebp
call fcn.00415f70
mov ecx, dword [ebp + 0x114]
shr ecx, 8
test cl, 1
jne 0x417e1f
lea edx, [ebp + 0xe4]
push edx
call fcn.0041e5e0
add esp, 4
test eax, eax
je 0x418652
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x417e1f
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax]
push ecx
push edx
mov ecx, edi
call fcn.0047ed20
mov eax, dword [ebp + 0x114]
test eax, 0x80800
je 0x417ec4
lea ecx, [ebp + 0x12c]
shr eax, 8
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 8]
test al, 1
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
jne 0x417e71
lea edx, [esp + 0x38]
lea eax, [esp + 0x38]
push edx
lea ecx, [ebp + 0xe4]
push eax
push ecx
call fcn.0041deb0
add esp, 0xc
mov eax, dword [ebp + 0x114]
xor ecx, ecx
mov edx, eax
and edx, 0x80000
cmp edx, 0x80000
sete cl
and eax, 0x800
xor edx, edx
cmp eax, 0x800
mov eax, dword [ebp + 0xdc]
sete dl
push ecx
mov ecx, dword [ebp + 0xd8]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0040d930
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x417f06
mov eax, dword [ebp + 0x114]
shr eax, 8
test al, 1
je 0x417ee3
mov ecx, ebp
call fcn.00417110
test eax, eax
je 0x417f06
mov ecx, dword [ebp + 0x128]
mov edx, dword [ebp + 0x120]
mov eax, dword [ebp + 0x124]
push ecx
mov ecx, dword [ebp + 0x11c]
push edx
push eax
push ecx
mov ecx, edi
call fcn.0047ed20
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
or esi, 0xffffffff
cmp ecx, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
jne 0x417f2d
lea edx, [esp + 0x70]
lea ecx, [esp + 0x6c]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.00415e40
mov eax, dword [ebp + 0x140]
mov edx, dword [ebp + 0x124]
test eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], esi
je 0x417f66
mov ecx, ebp
call fcn.0040f400
cmp dword [ebp + 0x140], eax
jle 0x417f66
mov dword [ebp + 0x140], eax
mov eax, dword [ebp + 0x140]
push 0
push eax
mov ecx, ebp
call fcn.00415ef0
mov ecx, dword [ebp]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x60], ecx
cmp ecx, eax
jl 0x417f8c
mov dword [esp + 0x60], eax
cmp ecx, eax
mov dword [esp + 0x4c], ecx
jg 0x417f98
mov dword [esp + 0x4c], eax
mov esi, dword [ebp + 0x140]
mov eax, dword [ebp + 0x154]
cmp esi, eax
mov dword [esp + 0x14], esi
jge 0x418652
push ebx
jmp 0x417fb7
mov esi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x150]
lea edx, [esp + 0x8c]
push edx
push esi
mov ebx, dword [ecx + esi*4]
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.00417bf0
mov edi, dword [ebx + 0x1c]
test edi, edi
mov dword [esp + 0x5c], edi
je 0x417ffb
mov ecx, dword [ebx + 4]
lea eax, [edi + edi*2]
mov ax, word [ecx + eax*2 - 6]
cmp ax, 0xa
je 0x417ff6
cmp ax, 0xd
jne 0x417ffb
dec edi
mov dword [esp + 0x5c], edi
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
mov ecx, dword [ebp + 0x128]
add eax, edx
add eax, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x80], eax
jle 0x41802c
cmp esi, dword [ebp + 0x140]
jg 0x4185df
xor eax, eax
mov dword [esp + 0x34], 0xffffffff
cmp edi, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x14], eax
jle 0x4184d5
jmp 0x418058
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], 0xffffffff
jge 0x4184d5
mov ecx, dword [esp + 0x28]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x54], ebx
lea edx, [eax + ecx]
lea ecx, [eax + eax*2]
shl ecx, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edx
add ecx, ebx
cmp word [ecx], 9
jne 0x4180aa
test byte [ebp + 0x114], 0x10
jne 0x4180aa
cmp esi, 2
je 0x4180fd
mov esi, 1
jmp 0x4180b4
cmp esi, 1
je 0x4180fd
mov esi, 2
xor ebx, ebx
mov dword [esp + 0x38], esi
mov bx, word [ecx + 2]
cmp ebx, dword [esp + 0x34]
jne 0x4181de
mov ebx, dword [ebp]
cmp ebx, dword [ebp + 4]
je 0x4180f4
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jne 0x4180e2
cmp edx, dword [esp + 0x64]
je 0x4181f9
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x4180f4
cmp edx, dword [esp + 0x50]
je 0x41820a
inc eax
add ecx, 6
inc edx
cmp eax, edi
jl 0x41808f
mov dword [esp + 0x14], eax
cmp dword [esp + 0x4c], eax
je 0x4184b4
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x20]
or ebx, 0xffffffff
cmp edx, ecx
mov dword [esp + 0x54], 0
jl 0x41813c
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x50]
cmp esi, eax
jg 0x41813c
mov dword [esp + 0x54], 1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov esi, dword [ebp]
sub edi, eax
cmp esi, dword [ebp + 4]
mov dword [esp + 0x20], edi
je 0x41817d
cmp edx, ecx
jne 0x41817d
mov ecx, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x78], 1
call fcn.004178f0
mov edx, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], edx
test byte [ebp + 0x114], 0x10
je 0x41821b
lea edi, [edi + edi*2]
shl edi, 1
push edi
call fcn.0041ec00
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4184b4
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov ecx, edi
mov edx, dword [eax + 4]
mov eax, ecx
add esi, edx
mov edx, dword [esp + 0x1c]
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x41822c
mov eax, edx
mov word [eax], 0x2a
add eax, 6
dec ecx
jne 0x4181d1
jmp 0x41822c
mov esi, dword [esp + 0x54]
lea edx, [eax + eax*2]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov cx, word [esi + edx*2 + 2]
mov dword [esp + 0x2c], ecx
jmp 0x418101
mov dword [esp + 0x14], eax
mov dword [esp + 0x7c], 1
jmp 0x418101
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], 1
jmp 0x418101
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
add eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov edx, eax
test edx, edx
je 0x4184b4
cmp ebx, 0xffffffff
jne 0x418250
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
push 0
push 0
push edx
push eax
mov ecx, ebp
call fcn.004178f0
mov ebx, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
push 0
push ecx
push edx
mov ecx, ebp
call fcn.004178f0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
mov ecx, ebp
lea esi, [eax*8]
sub esi, eax
mov eax, dword [ebp + 0x1ac]
shl esi, 4
mov edi, esi
add edi, eax
call fcn.00415240
push eax
push edi
mov edi, dword [esp + 0x60]
mov ecx, edi
call fcn.0047ec90
mov eax, dword [esp + 0x54]
test eax, eax
je 0x41833a
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jge 0x4182c9
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x10]
add edx, eax
mov dword [esp + 0x80], edx
mov eax, dword [ebp + 0x144]
mov edx, dword [esp + 0x30]
mov ecx, ebx
sub edx, eax
sub ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [ebp + 0x11c]
push eax
push ecx
call fcn.0041daf0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov eax, 0xff000000
push eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0040d890
cmp dword [esp + 0x38], 2
jne 0x418376
or eax, 0xffffffff
jmp 0x41834b
cmp dword [esp + 0x38], 2
jne 0x418376
mov edx, dword [ebp + 0x1ac]
mov eax, dword [esi + edx + 0x58]
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
add edx, eax
push ecx
push edx
mov edx, dword [ebp + 0x144]
mov ecx, ebx
sub ecx, edx
push ecx
mov ecx, edi
call fcn.0040d430
test byte [ebp + 0x114], 0x10
je 0x41838c
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041ec10
add esp, 4
mov eax, dword [ebp + 0x1ac]
lea ecx, [esi + eax]
mov al, byte [esi + eax + 0x54]
test al, 8
je 0x4183d9
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [esp + 0x90]
sar eax, 1
add eax, edx
mov edx, dword [ecx + 0x58]
mov ecx, dword [ebp + 0x144]
push 0
push edx
mov edx, dword [esp + 0x38]
add eax, esi
mov esi, dword [edi]
sub edx, ecx
push eax
push edx
mov edx, ebx
sub edx, ecx
push eax
push edx
mov ecx, edi
call dword [esi + 4]
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4184b4
mov esi, dword [esp + 0x24]
xor eax, eax
mov ecx, dword [esi + 4]
mov ax, word [ecx + 4]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x1b0]
mov ecx, dword [eax + edx*4 + 0x2c]
test ecx, ecx
je 0x4184b4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41843a
mov ecx, dword [ebp + 0x150]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x41843a
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ax, word [eax + edx*2 - 6]
cmp ax, 0xa
je 0x41843a
cmp ax, 0xd
jne 0x4184b4
push 0
push 0x168
mov ecx, ebp
call fcn.00417160
mov edx, dword [ebp + 0x144]
mov ecx, dword [esi + 4]
sub ebx, edx
mov edx, dword [ecx]
sub ebx, eax
mov dword [esp + 0x84], edx
mov ax, word [ecx + 4]
mov ecx, ebp
mov word [esp + 0x88], ax
call fcn.00415240
xor ecx, ecx
cmp eax, 6
setl cl
dec ecx
mov eax, 0xff000000
and ecx, 0x1f8d
push eax
mov eax, dword [esp + 0x94]
add ecx, 0x95
mov word [esp + 0x88], cx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push 1
add eax, ecx
push edx
push eax
push ebx
mov ecx, edi
call fcn.0040d430
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4184c1
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
cmp eax, edx
jl 0x41804c
mov ebx, dword [esp + 0x24]
mov ecx, ebp
call fcn.00415880
test eax, eax
jne 0x4185a0
test dword [ebp + 0x114], 0x10000
jne 0x4185a0
mov eax, dword [ebp + 0x1cc]
test eax, eax
je 0x4185a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
cmp ecx, eax
jne 0x4185a0
mov ecx, dword [esp + 0x74]
mov esi, dword [ebp + 0x120]
mov edi, dword [ebp + 0x11c]
push 0
push 0
mov edx, eax
push ecx
push edx
mov ecx, ebp
call fcn.004178f0
sub eax, dword [ebp + 0x144]
cmp edi, eax
jle 0x41853d
mov eax, edi
cmp eax, esi
jge 0x418543
mov esi, eax
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
jne 0x418554
mov eax, dword [ebp + 0xc0]
jmp 0x41856a
mov edx, dword [ebp + 0x1ac]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 4
mov eax, dword [ecx + edx + 0x58]
mov edi, dword [esp + 0x94]
mov ecx, dword [esp + 0x58]
push 1
push eax
mov eax, dword [esp + 0x98]
mov edx, dword [ecx]
add eax, edi
mov edi, dword [esp + 0x18]
add eax, edi
push eax
push esi
push edi
push esi
call dword [edx + 4]
mov dword [esp + 0x60], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], 1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x9c]
mov ecx, dword [ebp + 0x128]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x4185df
mov ecx, dword [ebx + 0x1c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add esi, ecx
mov ecx, dword [ebp + 0x154]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], eax
jl 0x417fb3
mov eax, dword [esp + 0x68]
pop ebx
test eax, eax
je 0x41864e
mov eax, dword [ebp + 0x20]
mov byte [ebp + 0x14c], 1
test eax, eax
mov byte [esp + 0x28], 0
je 0x41860c
mov edx, dword [eax]
mov eax, dword [edx + 0x198]
test eax, eax
setne al
mov byte [esp + 0x28], al
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
lea ecx, [ebp + 0x68]
lea eax, [ebp + 0xe4]
push ecx
mov ecx, dword [esp + 0x6c]
push edi
push edx
mov edx, dword [esp + 0x68]
push eax
push ecx
push edx
push ebp
call fcn.0047e420
mov eax, dword [edi]
add esp, 0x1c
mov ecx, edi
mov byte [ebp + 0x14c], 0
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x90
ret 8
mov edi, dword [esp + 0x54]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x90
ret 8