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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x410e02
sub esp, 0xac
mov edx, dword [0x7f03f0]
test byte [edx], al
mov ebx, dword [esp + 0xb0]
mov ebp, ebx
shr ebx, 0x16
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x410d5c
mov esi, ebp
shr ebp, 4
and ebp, 0x3ffff
add ebp, edx
mov edi, esi
shr esi, 2
and esi, 3
add edx, 0x3ffff
mov eax, ebx
mov ecx, esi
mov esi, dword [esp + 0xbc]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0xb4]
cmp esi, 8
je 0x410cbf
lea esi, [esi + edi - 1]
shr esi, 0x16
cmp esi, ebx
je 0x410caf
mov edx, edi
xor ebp, ebp
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0xbc]
movzx esi, byte [edx + 0xf]
xchg esi, eax
test al, 0x40
xchg esi, eax
jne 0x410c54
mov dword [esp + 0x9c], edi
mov dword [esp + 0x64], ecx
mov ebp, dword [edx]
mov dword [esp + 0x60], ebp
mov esi, dword [esp + 0xb8]
cmp ebp, esi
jae 0x410c3e
mov ebx, dword [edx + 4]
shr ebx, 2
cmp ebx, 0x19
ja 0x410c10
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x88], eax
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x78]
jmp 0x4106e0
lea eax, [edi + 8]
mov ecx, dword [esp + 0x88]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
cmp ecx, 0x20
sbb ecx, ecx
and ecx, edx
mov edx, dword [esp + 0x30]
or edx, ecx
mov ecx, dword [esp + 0x88]
inc ecx
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0xbc]
mov edi, dword [esp + 0x40]
cmp edi, ebx
jb 0x410695
mov ebx, ebp
shr ebp, 2
lea edi, [ebp + ebp]
cmp edi, 0x19
ja 0x410c03
mov dword [esp + 0x48], ebp
mov edi, dword [esp + 0x30]
jmp 0x410724
mov dword [esp + 0x30], edi
mov ecx, ebp
shl edi, cl
cmp ecx, 0x20
sbb eax, eax
and edi, eax
mov eax, dword [esp + 0x30]
or edi, eax
lea ebp, [ecx + ecx]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
cmp ebp, 0x20
jbe 0x410704
mov ebp, dword [esp + 0x48]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x410dfb
xchg ebp, eax
movzx edx, al
xchg ebp, eax
mov ebx, 0x19
movzx ebx, bl
mov eax, ebx
mov esi, edx
xor edx, edx
div si
movzx edx, al
imul edx, ebp
mov eax, ecx
mov ecx, edx
mov ebx, 1
shl ebx, cl
cmp ecx, 0x20
sbb ebp, ebp
and ebx, ebp
dec ebx
and edi, ebx
xor edx, edx
xor ebx, ebx
mov ebp, ecx
test edx, edx
je 0x410bfc
movzx esi, byte [edx]
inc edx
mov ecx, 8
mov dword [esp + 0x48], ebp
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0xb8]
mov ebp, dword [esp + 0x60]
cmp edi, ebp
jne 0x410bc4
mov ebp, dword [esp + 0xbc]
mov edi, dword [ebp + 4]
shr edi, 2
test edi, edi
je 0x410d85
cmp edi, 2
jae 0x410bbd
mov ebp, 2
test eax, eax
jne 0x410d6d
mov eax, esi
and esi, 0xf
or esi, 0xd0
cmp ebp, 4
ja 0x410a41
mov eax, 4
mov ecx, dword [esp + 0x9c]
cmp eax, ebp
jbe 0x410a36
mov edx, eax
sub eax, ebp
add eax, 0xfffffffc
neg eax
mov ebx, ecx
mov ecx, eax
mov ebp, 1
shl ebp, cl
cmp eax, 0x20
sbb eax, eax
and ebp, eax
lea eax, [ebp - 1]
mov ebp, eax
shl eax, 4
or eax, ebp
and eax, esi
mov ecx, dword [esp + 0xb4]
mov ebp, ecx
shr ecx, 2
cmp edx, ecx
ja 0x410a29
mov byte [ebx], al
lea eax, [edx + 4]
lea edx, [ebx + 1]
jmp 0x410839
mov byte [edx], 0
add eax, 4
inc edx
cmp eax, ecx
jbe 0x410832
xor ebx, ebx
add ecx, 2
cmp ecx, eax
jne 0x410a1a
movzx eax, byte [edx]
and eax, 0xffffffcc
or eax, ebx
mov byte [edx], al
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
je 0x4109a4
mov eax, dword [0x7f03f0]
test byte [eax], al
mov ecx, dword [esp + 0x6c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x410a06
mov edx, dword [esp + 0xb0]
mov ebx, edx
shr edx, 4
and edx, 0x3ffff
add edx, eax
mov esi, ebx
shr ebx, 2
and ebx, 3
add eax, 0x3ffff
shr ebp, 2
mov edi, esi
jmp 0x410957
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x98], edx
shr ebp, 2
shl ebp, 2
mov dword [esp + 0x10], ebp
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040f9a0
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa4], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x58], ebp
mov esi, dword [esp + 0x98]
mov dword [esp], esi
mov esi, dword [esp + 0x90]
mov dword [esp + 4], esi
shr ebx, 2
mov dword [esp + 0x3c], ebx
mov dword [esp + 8], ebx
call fcn.0044bfc0
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
sub ebp, eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x3c]
lea esi, [ecx + eax]
mov edi, dword [esp + 0xb0]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x90], esi
cmp ebp, 4
jae 0x4108a6
cmp ebp, 2
jne 0x410a02
movzx ebp, byte [edx]
and ebp, 0xffffffcc
movzx edi, byte [esi]
or ebp, edi
xchg ebp, eax
mov byte [edx], al
xchg ebp, eax
cmp ebx, 3
jae 0x4109cc
inc ebx
cmp ebx, 3
jae 0x4109ab
lea eax, [esi + 1]
mov ecx, dword [esp + 0xb0]
mov edx, ecx
mov dword [esp], ecx
sub eax, edx
mov dword [esp + 4], eax
call fcn.0044bde0
add esp, 0xac
ret
cmp edx, eax
jne 0x41098a
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040f870
mov esi, dword [esp + 0x90]
jmp 0x41098a
cmp edx, eax
je 0x4109d5
inc edx
xor ebx, ebx
jmp 0x410985
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040f870
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x90]
jmp 0x410985
mov eax, esi
jmp 0x41098d
mov esi, dword [esp + 0xb0]
xor eax, eax
xor ecx, ecx
xor ebx, ebx
xor edx, edx
jmp 0x41089c
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jmp 0x41085e
mov esi, eax
mov eax, edx
mov edx, ebx
mov ebx, esi
jmp 0x41083f
mov edx, eax
mov ebx, ecx
mov eax, esi
jmp 0x410814
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x34], ebp
mov edi, dword [esp + 0x9c]
xchg esi, eax
mov byte [edi], al
xchg esi, eax
shr eax, 4
lea esi, [ecx - 8]
inc edi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
mov eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
jmp 0x410aa7
test byte [esi], al
mov esi, 1
mov byte [edi + esi], al
shr ebx, 4
add edi, 2
mov eax, dword [esp + 0x5c]
mov eax, ebx
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x8c]
mov esi, ecx
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x38], esi
mov dword [esp + 0x50], eax
and eax, 0xf
or eax, 0xf0
mov esi, dword [esp + 0x2c]
add esi, 4
cmp esi, ebp
jae 0x410bb2
mov byte [edi], al
mov eax, dword [esp + 0x50]
shr eax, 4
cmp ebx, edx
je 0x410b28
mov esi, dword [esp + 0x38]
cmp esi, 8
jae 0x410b21
movzx ebx, byte [edx]
mov ecx, esi
shl ebx, cl
cmp ecx, 0x20
sbb ebp, ebp
and ebx, ebp
or eax, ebx
inc edx
mov dword [esp + 0x8c], edx
mov ebx, eax
and eax, 0xf
or eax, 0xf0
mov ebp, dword [esp + 0x2c]
add ebp, 8
lea esi, [edi + 1]
mov edx, dword [esp + 0x34]
cmp ebp, edx
jb 0x410a75
mov ecx, esi
mov esi, eax
mov eax, ebp
mov ebp, edx
jmp 0x4107e5
add esi, 0xfffffff8
mov ecx, esi
jmp 0x410aed
test edx, edx
je 0x410b77
movzx edx, byte [edx]
mov ecx, dword [esp + 0x38]
shl edx, cl
cmp ecx, 0x20
sbb esi, esi
and edx, esi
or eax, edx
mov edx, dword [esp + 0x48]
lea esi, [ecx + edx]
cmp esi, 8
jae 0x410b68
mov edx, dword [esp + 0x94]
movzx ebx, byte [edx]
mov ecx, esi
shl ebx, cl
cmp ecx, 0x20
sbb ebp, ebp
and ebx, ebp
or eax, ebx
lea ebx, [edx + 1]
mov edx, ebx
jmp 0x410aed
lea ecx, [ecx + edx - 8]
mov edx, dword [esp + 0x94]
mov ebx, edx
jmp 0x410b64
mov esi, dword [esp + 0x38]
cmp esi, 8
jae 0x410ba8
mov ecx, esi
mov ebx, dword [esp + 0x5c]
shl ebx, cl
cmp ecx, 0x20
sbb ebp, ebp
and ebx, ebp
or ebx, eax
mov eax, dword [esp + 0x48]
lea ebp, [ecx + eax]
lea ecx, [ebp - 8]
mov eax, ebx
mov ebx, edx
mov edx, dword [esp + 0x94]
jmp 0x410b64
mov ebp, esi
mov ebx, eax
mov eax, dword [esp + 0x48]
jmp 0x410b98
mov edx, ebp
mov ebp, esi
mov esi, edi
jmp 0x410b14
mov ebp, edi
jmp 0x4107bd
test ebp, ebp
je 0x410df4
mov dword [esp + 0x8c], edx
mov eax, edi
xor edx, edx
div ebp
lea edi, [eax - 1]
imul edi, ebp
mov ebp, dword [esp + 0xbc]
add edi, dword [ebp + 4]
shr edi, 2
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x8c]
jmp 0x4107a7
mov esi, edi
jmp 0x41077f
mov eax, ecx
mov edi, dword [esp + 0x30]
mov ecx, ebp
jmp 0x410768
lea esi, [ebx + 7]
shr esi, 3
mov ebx, esi
dec esi
shr ebp, 2
shl esi, 3
sub ebp, esi
mov esi, dword [esp + 0x94]
lea ebx, [esi + ebx - 1]
mov eax, ecx
mov edx, dword [esp + 0x94]
xor ecx, ecx
xor edi, edi
jmp 0x41076e
mov eax, ecx
mov edx, dword [esp + 0x94]
xor ecx, ecx
xor ebx, ebx
xor edi, edi
xor ebp, ebp
jmp 0x41076e
mov eax, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp + 0x14], edx
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x94]
add ecx, 4
mov dword [esp + 0x20], ecx
call fcn.00410e10
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
mov ebp, dword [esp + 0xb4]
jmp 0x41085e
mov edi, ebp
mov ebp, edx
mov edx, dword [esp + 0xb0]
jmp 0x410612
mov eax, dword [esp + 0xbc]
mov eax, dword [eax]
cmp eax, 4
jne 0x410d1d
mov eax, dword [esp + 0xb8]
cmp eax, 4
jne 0x410d04
movzx eax, byte [ebp]
mov edx, 0x33
shl edx, cl
cmp ecx, 0x20
sbb ebx, ebx
and edx, ebx
not edx
and edx, eax
mov eax, 0x11
shl eax, cl
and eax, ebx
or eax, edx
mov byte [ebp], al
add esp, 0xac
ret
movzx eax, byte [ebp]
mov edx, 0x13
shl edx, cl
cmp ecx, 0x20
sbb ebx, ebx
and edx, ebx
or eax, edx
mov byte [ebp], al
jmp 0x410cfd
mov eax, dword [esp + 0x94]
movzx eax, byte [eax]
and eax, 3
or eax, 0x10
movzx edx, byte [ebp]
mov ebx, 0x33
shl ebx, cl
cmp ecx, 0x20
sbb esi, esi
and esi, ebx
xchg esi, ebx
not ebx
xchg esi, ebx
and esi, edx
shl eax, cl
cmp ecx, 0x20
sbb edx, edx
and eax, edx
or eax, esi
mov byte [ebp], al
add esp, 0xac
ret
mov eax, ebx
mov edi, ebp
xor edx, edx
xor ebx, ebx
xor esi, esi
xor ebp, ebp
jmp 0x4105dc
lea eax, [0x63c167]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00426d20
ud2
mov dword [esp], ebp
call fcn.00444ce0
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0xa8], ecx
call fcn.004275e0
lea eax, [0x638765]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00427e60
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00427e60
call fcn.004277f0
call fcn.00427650
lea eax, [0x63f645]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call fcn.00426d20
ud2
call fcn.00425b10
ud2
call fcn.00425b10
ud2
call fcn.0044a060
jmp fcn.00410580