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

Disassembly:
sub esp, 0x94
push ebx
push ebp
mov ebp, ecx
push esi
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x410e0d
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 0xc30]
test eax, eax
je 0x410e05
mov eax, dword [eax + 0x10]
mov esi, dword [edx + 0x10]
cmp eax, esi
jne 0x410e05
mov eax, dword [ebp + 0x240]
test ah, 0x10
jne 0x410e05
mov eax, dword [ecx + 0xc50]
test eax, eax
je 0x410e05
mov eax, 1
jmp 0x410e07
xor eax, eax
mov dword [ebp + 0x2e0], eax
mov ecx, dword [esp + 0xa4]
lea ebx, [ebp + 0x2e8]
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], ebx
call fcn.00409090
mov ecx, ebp
call fcn.0040f6e0
mov edx, dword [ebp + 0x240]
shr edx, 8
test dl, 1
jne 0x410e61
lea eax, [ebp + 0x210]
push eax
call fcn.00415fa0
add esp, 4
test eax, eax
jne 0x410e61
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4
mov eax, dword [ebp + 0x240]
test eax, 0x80800
je 0x410f06
lea ecx, [ebp + 0x258]
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 0x410eb3
lea edx, [esp + 0x38]
lea eax, [esp + 0x38]
push edx
lea ecx, [ebp + 0x210]
push eax
push ecx
call fcn.00415870
add esp, 0xc
mov eax, dword [ebp + 0x240]
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 + 0x20c]
sete dl
push ecx
mov ecx, dword [ebp + 0x208]
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, ebx
call fcn.00409630
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x410f48
mov eax, dword [ebp + 0x240]
shr eax, 8
test al, 1
je 0x410f25
mov ecx, ebp
call fcn.00410600
test eax, eax
je 0x410f48
mov ecx, dword [ebp + 0x254]
mov edx, dword [ebp + 0x24c]
mov eax, dword [ebp + 0x250]
push ecx
mov ecx, dword [ebp + 0x248]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0045f770
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
or esi, 0xffffffff
cmp ecx, eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x70], esi
jne 0x410f75
lea edx, [esp + 0x70]
lea ecx, [esp + 0x80]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.0040f5b0
mov edx, dword [ebp + 0x250]
mov ecx, ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
call fcn.0040ac70
cmp dword [ebp + 0x26c], eax
jle 0x410fa4
mov dword [ebp + 0x26c], eax
mov eax, dword [ebp + 0x26c]
push 0
push eax
mov ecx, ebp
call fcn.0040f660
mov ecx, dword [ebp]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x5c], ecx
cmp ecx, eax
jl 0x410fca
mov dword [esp + 0x5c], eax
cmp ecx, eax
mov dword [esp + 0x30], ecx
jg 0x410fd6
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x27c]
push edi
mov edi, dword [ebp + 0x26c]
cmp edi, eax
mov dword [esp + 0x1c], edi
jge 0x41168f
jmp 0x410ff5
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x278]
lea edx, [esp + 0x90]
push edx
push edi
mov ebx, dword [ecx + edi*4]
mov ecx, ebp
mov dword [esp + 0x28], ebx
call fcn.00410c50
mov esi, dword [ebx + 0x1c]
test esi, esi
mov dword [esp + 0x38], esi
je 0x411039
mov ecx, dword [ebx + 4]
lea eax, [esi + esi*2]
mov ax, word [ecx + eax*2 - 6]
cmp ax, 0xa
je 0x411034
cmp ax, 0xd
jne 0x411039
dec esi
mov dword [esp + 0x38], esi
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov ecx, dword [ebp + 0x254]
add eax, edx
add eax, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x80], eax
jle 0x41106a
cmp edi, dword [ebp + 0x26c]
jg 0x41161c
xor eax, eax
mov dword [esp + 0x54], 0xffffffff
cmp esi, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x18], eax
jle 0x41151b
jmp 0x411096
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0xffffffff
jge 0x41151b
mov ecx, dword [esp + 0x28]
mov ebx, dword [ebx + 4]
add ecx, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ecx
mov edx, ecx
lea ecx, [eax + eax*2]
shl ecx, 1
mov dword [esp + 0x2c], ecx
add ecx, ebx
cmp word [ecx], 9
jne 0x4110e9
test byte [ebp + 0x240], 0x10
jne 0x4110e9
cmp edi, 2
je 0x41113c
mov edi, 1
jmp 0x4110f3
cmp edi, 1
je 0x41113c
mov edi, 2
xor ebx, ebx
mov dword [esp + 0x30], edi
mov bx, word [ecx + 2]
cmp ebx, dword [esp + 0x54]
jne 0x411230
mov ebx, dword [ebp]
cmp ebx, dword [ebp + 4]
je 0x411133
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x411121
cmp edx, dword [esp + 0x60]
je 0x41124b
mov ebx, dword [esp + 0x70]
test ebx, ebx
jne 0x411133
cmp edx, dword [esp + 0x34]
je 0x41125c
inc eax
add ecx, 6
inc edx
cmp eax, esi
jl 0x4110ce
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x58]
cmp ecx, eax
je 0x4114fa
mov edi, dword [esp + 0x1c]
push 0
mov eax, ecx
push 0
push eax
push edi
mov ecx, ebp
call fcn.004107a0
mov esi, dword [esp + 0x18]
push 0
push 0
push esi
push edi
mov ecx, ebp
mov ebx, eax
call fcn.004107a0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x7c], 0
cmp eax, ecx
jl 0x4111a1
mov edx, dword [esp + 0x28]
lea eax, [esi + edx]
mov edx, dword [esp + 0x34]
cmp eax, edx
jg 0x4111a1
mov dword [esp + 0x7c], 1
mov edi, dword [esp + 0x58]
mov edx, dword [ebp]
mov eax, esi
mov esi, dword [ebp + 4]
sub eax, edi
cmp edx, esi
mov dword [esp + 0x6c], eax
je 0x4111d1
cmp dword [esp + 0x14], ecx
jne 0x4111d1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ecx
test byte [ebp + 0x240], 0x10
je 0x41126d
lea edi, [eax + eax*2]
shl edi, 1
push edi
call fcn.00416550
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4114fa
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov ecx, edi
mov edi, dword [edx + 4]
mov edx, eax
mov eax, ecx
add esi, edi
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 + 0x6c]
test ecx, ecx
jle 0x41127e
mov eax, edx
mov word [eax], 0x2a
add eax, 6
dec ecx
jne 0x411223
jmp 0x41127e
mov esi, dword [esp + 0x50]
lea edx, [eax + eax*2]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov cx, word [esi + edx*2 + 2]
mov dword [esp + 0x24], ecx
jmp 0x411140
mov dword [esp + 0x18], eax
mov dword [esp + 0x78], 1
jmp 0x411140
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], 1
jmp 0x411140
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov edx, eax
test edx, edx
je 0x4114fa
mov ecx, dword [esp + 0x54]
mov edi, dword [ebp + 0x2c0]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, ebp
shl eax, 6
mov esi, eax
mov dword [esp + 0x2c], eax
add esi, edi
call fcn.0040ea00
push eax
push esi
mov esi, dword [esp + 0x54]
mov ecx, esi
call fcn.0045f6e0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x41136f
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add edx, eax
mov eax, dword [esp + 0x34]
cmp edx, eax
jge 0x4112ec
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x10]
add ecx, edi
mov dword [esp + 0x80], ecx
jmp 0x4112f0
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 0x270]
mov ecx, dword [esp + 0x50]
mov edx, ebx
sub ecx, eax
sub edx, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [ebp + 0x248]
push ecx
push edx
mov dword [esp + 0x50], edi
call fcn.004154b0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add esp, 0xc
mov eax, 0xff000000
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00409590
cmp dword [esp + 0x30], 2
jne 0x4113b8
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x98]
push ecx
push edx
jmp 0x41139d
cmp dword [esp + 0x30], 2
jne 0x4113b4
mov edx, dword [ebp + 0x2c0]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x10]
mov eax, dword [eax + edx + 0x1a8]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x98]
push ecx
push edx
mov edx, dword [ebp + 0x270]
mov ecx, ebx
add eax, edi
sub ecx, edx
push eax
push ecx
mov ecx, esi
call fcn.00409280
jmp 0x4113b8
mov edi, dword [esp + 0x10]
test byte [ebp + 0x240], 0x10
je 0x4113ce
mov edx, dword [esp + 0x14]
push edx
call fcn.00416560
add esp, 4
mov eax, dword [ebp + 0x2c0]
mov ecx, dword [esp + 0x2c]
add ecx, eax
test byte [ecx + 0x1a4], 8
je 0x411422
mov eax, dword [esp + 0x98]
push 0
cdq
sub eax, edx
mov edx, dword [esp + 0x98]
sar eax, 1
add eax, edx
mov edx, dword [ecx + 0x1a8]
mov ecx, dword [ebp + 0x270]
push edx
mov edx, dword [esp + 0x58]
add eax, edi
mov edi, dword [esi]
sub edx, ecx
push eax
push edx
mov edx, ebx
push eax
sub edx, ecx
mov ecx, esi
push edx
call dword [edi + 4]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x4114fa
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
xor eax, eax
mov ax, word [ecx + 4]
lea edx, [eax + eax*8]
mov eax, dword [ebp + 0x2c4]
mov ecx, dword [eax + edx*4 + 0x20]
test ecx, ecx
je 0x4114fa
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x411480
mov ecx, dword [ebp + 0x278]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x411480
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ax, word [eax + edx*2 - 6]
cmp ax, 0xa
je 0x411480
cmp ax, 0xd
jne 0x4114fa
push 0
push 0x168
mov ecx, ebp
call fcn.00410650
mov ecx, dword [ebp + 0x270]
sub ebx, ecx
mov ecx, dword [esp + 0x20]
sub ebx, eax
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov dword [esp + 0x88], eax
mov cx, word [edx + 4]
mov word [esp + 0x8c], cx
mov ecx, ebp
call fcn.0040ea00
mov ecx, dword [esp + 0x94]
xor edx, edx
cmp eax, 6
mov eax, 0xff000000
setl dl
dec edx
push eax
lea eax, [esp + 0x8c]
and edx, 0x1f8d
push 1
add ecx, edi
push eax
add edx, 0x95
push ecx
push ebx
mov ecx, esi
mov word [esp + 0x9c], dx
call fcn.00409280
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x411507
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
cmp eax, edx
jl 0x41108a
mov ebx, dword [esp + 0x20]
test dword [ebp + 0x240], 0x10008
jne 0x4115dd
mov eax, dword [ebp + 0x2e0]
test eax, eax
je 0x4115dd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x84]
cmp ecx, eax
jne 0x4115dd
mov ecx, dword [esp + 0x74]
mov esi, dword [ebp + 0x24c]
mov edi, dword [ebp + 0x248]
push 0
push 0
mov edx, eax
push ecx
push edx
mov ecx, ebp
call fcn.004107a0
sub eax, dword [ebp + 0x270]
cmp edi, eax
jle 0x411577
mov eax, edi
cmp eax, esi
jge 0x41157d
mov esi, eax
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
jne 0x41158e
mov eax, dword [ebp + 0x1f0]
jmp 0x4115a7
mov edx, dword [ebp + 0x2c0]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 6
mov eax, dword [ecx + edx + 0x1a8]
mov edi, dword [esp + 0x98]
mov ecx, dword [esp + 0x4c]
push 1
push eax
mov eax, dword [esp + 0x9c]
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 + 0x68], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x5c], 1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xa0]
mov ecx, dword [ebp + 0x254]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x41161c
mov ecx, dword [ebx + 0x1c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add esi, ecx
mov ecx, dword [ebp + 0x27c]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
jl 0x410ff1
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x41168b
mov eax, dword [ebp + 0x20]
mov byte [ebp + 0x274], 1
test eax, eax
mov byte [esp + 0x24], 0
je 0x411648
mov edx, dword [eax]
mov eax, dword [edx + 0x190]
test eax, eax
setne al
mov byte [esp + 0x24], al
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
lea ecx, [ebp + 0x48]
lea eax, [ebp + 0x210]
push ecx
mov ecx, dword [esp + 0x68]
push ebx
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
push ebp
call fcn.0045ee80
mov eax, dword [ebx]
add esp, 0x1c
mov ecx, ebx
mov byte [ebp + 0x274], 0
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4
mov ebx, dword [esp + 0x4c]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4