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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x4c]
cmp eax, dword [ecx + 8]
jbe 0x413629
sub esp, 0xcc
mov edx, dword [0xa84be4]
test byte [edx], al
nop
mov ebx, dword [esp + 0xd0]
mov ebp, ebx
shr ebx, 0x16
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x413549
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 + 0xdc]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0xd4]
cmp esi, 8
je 0x4134b5
lea esi, [esi + edi - 1]
shr esi, 0x16
cmp esi, ebx
je 0x4134a5
mov edx, edi
xor ebp, ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0xdc]
movzx esi, byte [edx + 0xf]
xchg esi, eax
test al, 0x40
xchg esi, eax
jne 0x41344a
mov dword [esp + 0x9c], edi
mov dword [esp + 0x5c], ecx
mov ebp, dword [edx]
mov dword [esp + 0x58], ebp
mov esi, dword [esp + 0xd8]
cmp esi, ebp
jbe 0x413434
mov ebx, dword [edx + 4]
shr ebx, 2
cmp ebx, 0x19
ja 0x413405
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x94], 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 0x412ee8
cmp edi, 0x20
sbb eax, eax
lea ecx, [edi + 8]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x94]
movzx esi, byte [edx]
mov ecx, edi
shl esi, cl
and esi, eax
mov eax, dword [esp + 0x30]
or eax, esi
nop
lea ecx, [edx + 1]
mov edx, dword [esp + 0x3c]
mov edx, dword [esp + 0xdc]
mov esi, dword [esp + 0xd8]
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x3c]
cmp ebx, edi
ja 0x412e96
mov ebx, ebp
shr ebp, 2
lea edi, [ebp + ebp]
cmp edi, 0x19
ja 0x4133f8
mov dword [esp + 0x44], ebp
mov edi, dword [esp + 0x30]
jmp 0x412f29
mov dword [esp + 0x30], edi
sbb eax, eax
mov ecx, ebp
shl edi, cl
and edi, eax
mov eax, dword [esp + 0x30]
or edi, eax
lea ebp, [ecx + ecx]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
cmp ebp, 0x20
jbe 0x412f0c
mov ebp, dword [esp + 0x44]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x413623
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
cmp edx, 0x20
sbb ebx, ebx
mov eax, ecx
mov ecx, edx
mov ebp, 1
shl ebp, cl
and ebp, ebx
lea ebx, [ebp - 1]
and edi, ebx
xor edx, edx
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0x44], ebp
test edx, edx
je 0x4133dc
movzx esi, byte [edx]
nop
inc edx
mov ecx, edi
mov edi, dword [esp + 0xd8]
mov ebp, dword [esp + 0x58]
cmp edi, ebp
mov dword [esp + 0x70], eax
mov eax, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
jne 0x4133a4
mov ebp, dword [esp + 0xdc]
mov edi, dword [ebp + 4]
shr edi, 2
test edi, edi
je 0x413570
cmp edi, 2
jae 0x41339d
mov ebp, 2
test eax, eax
jne 0x41355a
mov eax, esi
and esi, 0xf
or esi, 0xd0
cmp ebp, 4
ja 0x413258
mov eax, 4
mov ecx, dword [esp + 0x9c]
cmp eax, ebp
jbe 0x41324f
mov edx, eax
sub eax, ebp
add eax, 0xfffffffc
neg eax
cmp eax, 0x20
sbb ebx, ebx
mov ebp, ecx
mov ecx, eax
mov edi, 1
shl edi, cl
and edi, ebx
lea eax, [edi - 1]
mov ebx, eax
shl eax, 4
or eax, ebx
and esi, eax
mov eax, dword [esp + 0xd4]
mov ecx, eax
shr eax, 2
cmp edx, eax
ja 0x413246
xchg esi, eax
mov byte [ebp], al
xchg esi, eax
nop
add edx, 4
lea ebx, [ebp + 1]
jmp 0x413050
mov byte [ebx], 0
add edx, 4
nop
inc ebx
cmp eax, edx
jae 0x413048
xor ebp, ebp
add eax, 2
cmp edx, eax
jne 0x413237
movzx eax, byte [ebx]
and eax, 0xffffffcc
or ebp, eax
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
cmp eax, edx
je 0x4131c1
mov eax, dword [0xa84be4]
test byte [eax], al
mov edx, dword [esp + 0x64]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x413223
mov ebx, dword [esp + 0xd0]
mov ebp, ebx
shr ebx, 4
and ebx, 0x3ffff
add ebx, eax
mov esi, ebp
shr ebp, 2
and ebp, 3
add eax, 0x3ffff
shr ecx, 2
mov edi, esi
jmp 0x413171
mov dword [esp + 0x48], ecx
mov dword [esp + 0x98], ebx
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
shr ecx, 2
shl ecx, 2
mov dword [esp + 0x10], ecx
call fcn.00411f50
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa8], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x54], ebx
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xa4], ebp
mov esi, dword [esp + 0x98]
mov dword [esp], esi
mov esi, dword [esp + 0x8c]
mov dword [esp + 4], esi
shr eax, 2
mov dword [esp + 0x38], eax
mov dword [esp + 8], eax
call fcn.00460690
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
sub ecx, eax
nop
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x8c]
lea esi, [edx + eax]
mov edi, dword [esp + 0xd0]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x8c], esi
cmp ecx, 4
jae 0x4130bf
cmp ecx, 2
jne 0x41321f
movzx ecx, byte [ebx]
and ecx, 0xffffffcc
movzx edi, byte [esi]
or edi, ecx
xchg edi, eax
mov byte [ebx], al
xchg edi, eax
nop
cmp ebp, 3
jae 0x4131e9
lea ecx, [ebp + 1]
cmp ecx, 3
jae 0x4131c8
lea eax, [esi + 1]
mov ecx, dword [esp + 0xd0]
mov edx, ecx
mov dword [esp], ecx
sub eax, edx
mov dword [esp + 4], eax
call fcn.004604b0
add esp, 0xcc
ret
cmp eax, ebx
jne 0x4131a7
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call fcn.00411e10
mov esi, dword [esp + 0x8c]
jmp 0x4131a7
cmp eax, ebx
je 0x4131f2
inc ebx
xor ecx, ecx
jmp 0x4131a2
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call fcn.00411e10
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x8c]
jmp 0x4131a2
mov eax, esi
jmp 0x4131aa
mov esi, dword [esp + 0xd0]
xor edx, edx
xor ebp, ebp
xor eax, eax
xor ebx, ebx
jmp 0x4130b5
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
cmp eax, edx
jmp 0x413077
mov ebx, ebp
mov ebp, esi
jmp 0x413056
mov edx, eax
mov ebp, ecx
jmp 0x413026
mov dword [esp + 0x58], ecx
mov dword [esp + 0xa0], ebx
mov edi, dword [esp + 0x9c]
xchg esi, eax
mov byte [edi], al
xchg esi, eax
nop
shr eax, 4
mov esi, dword [esp + 0x34]
add esi, 0xfffffff8
inc edi
mov dword [esp + 0x68], eax
mov eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
jmp 0x4132ae
mov byte [edi + 1], al
nop
shr ebx, 4
add edi, 2
mov eax, dword [esp + 0x58]
mov eax, ebx
mov dword [esp + 0x2c], esi
mov esi, ecx
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x34], esi
mov dword [esp + 0x4c], eax
and eax, 0xf
or eax, 0xf0
mov esi, dword [esp + 0x2c]
add esi, 4
cmp esi, ebp
jae 0x413396
mov byte [edi], al
nop
mov eax, dword [esp + 0x4c]
shr eax, 4
cmp ebx, edx
je 0x41331b
mov esi, dword [esp + 0x34]
cmp esi, 8
jae 0x413314
movzx ebx, byte [edx]
mov ecx, esi
shl ebx, cl
or eax, ebx
nop
inc edx
mov ebx, eax
and eax, 0xf
or eax, 0xf0
mov esi, dword [esp + 0x2c]
add esi, 8
cmp esi, ebp
jb 0x41328d
lea edx, [edi + 1]
mov ecx, edx
mov ebx, eax
mov eax, esi
mov esi, ebx
jmp 0x412ff7
add esi, 0xfffffff8
mov ecx, esi
jmp 0x4132ef
test edx, edx
je 0x413363
mov esi, dword [esp + 0x34]
cmp esi, 0x20
sbb ebx, ebx
movzx edx, byte [edx]
mov ecx, esi
shl edx, cl
and ebx, edx
or eax, ebx
mov edx, dword [esp + 0x44]
lea ebx, [ecx + edx]
cmp ebx, 8
jae 0x413354
mov esi, dword [esp + 0x88]
movzx edx, byte [esi]
mov ecx, ebx
shl edx, cl
or eax, edx
lea edx, [esi + 1]
jmp 0x4132ef
lea ecx, [ecx + edx - 8]
mov esi, dword [esp + 0x88]
mov edx, esi
jmp 0x4132ef
mov esi, dword [esp + 0x34]
cmp esi, 8
jae 0x41338e
mov ecx, esi
mov ebx, dword [esp + 0x58]
shl ebx, cl
or ebx, eax
mov eax, dword [esp + 0x44]
lea esi, [ecx + eax]
lea ecx, [esi - 8]
mov esi, dword [esp + 0x88]
mov eax, ebx
jmp 0x4132ef
mov ebx, eax
mov eax, dword [esp + 0x44]
jmp 0x41337d
mov edx, edi
jmp 0x413307
mov ebp, edi
jmp 0x412fcf
test ebp, ebp
je 0x41361e
mov dword [esp + 0x90], edx
mov eax, edi
xor edx, edx
div ebp
lea edi, [eax - 1]
imul edi, ebp
mov ebp, dword [esp + 0xdc]
add edi, dword [ebp + 4]
shr edi, 2
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x90]
jmp 0x412fb9
mov esi, dword [esp + 0xd8]
mov ebp, dword [esp + 0x58]
cmp esi, ebp
mov dword [esp + 0x34], ecx
mov ecx, edi
mov edi, esi
mov esi, ecx
jmp 0x412fa6
mov eax, ecx
mov edi, dword [esp + 0x30]
mov ecx, ebp
jmp 0x412f6f
lea esi, [ebx + 7]
shr esi, 3
mov ebx, esi
dec esi
nop
shr ebp, 2
shl esi, 3
sub ebp, esi
mov esi, dword [esp + 0x88]
lea ebx, [esi + ebx - 1]
mov eax, ecx
mov edx, dword [esp + 0x88]
xor ecx, ecx
xor edi, edi
jmp 0x412f75
mov eax, ecx
mov edx, dword [esp + 0x88]
xor ecx, ecx
xor ebx, ebx
xor edi, edi
xor ebp, ebp
jmp 0x412f75
mov eax, dword [edx + 4]
mov edx, dword [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 dword [esp + 0x14], edx
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x88]
add ecx, 4
mov dword [esp + 0x20], ecx
call fcn.00413640
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
mov ecx, dword [esp + 0xd4]
jmp 0x413077
mov edi, ebp
mov ebp, edx
mov edx, dword [esp + 0xd0]
jmp 0x412e13
mov eax, dword [esp + 0xdc]
cmp dword [eax], 4
jne 0x413511
mov eax, dword [esp + 0xd8]
cmp eax, 4
jne 0x4134f8
cmp ecx, 0x20
sbb eax, eax
movzx edx, byte [ebp]
mov ebx, 0x33
shl ebx, cl
and ebx, eax
not ebx
and ebx, edx
mov edx, 0x11
shl edx, cl
and edx, eax
or edx, ebx
mov byte [ebp], dl
add esp, 0xcc
ret
cmp ecx, 0x20
sbb eax, eax
movzx edx, byte [ebp]
mov ebx, 0x13
shl ebx, cl
and ebx, eax
or edx, ebx
mov byte [ebp], dl
jmp 0x4134f1
cmp ecx, 0x20
sbb eax, eax
sbb edx, edx
mov ebx, dword [esp + 0x88]
movzx ebx, byte [ebx]
and ebx, 3
or ebx, 0x10
movzx esi, byte [ebp]
mov edi, 0x33
shl edi, cl
and eax, edi
not eax
and eax, esi
shl ebx, cl
and ebx, edx
or ebx, eax
mov byte [ebp], bl
add esp, 0xcc
ret
mov eax, ebx
mov edi, ebp
xor esi, esi
xor ebp, ebp
xor ebx, ebx
xor edx, edx
jmp 0x412ddd
lea eax, [0x7d35e8]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.004333f0
mov dword [esp], ebp
call fcn.00454120
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
lea edi, [esp + 0xb4]
mov edx, eax
xor eax, eax
call fcn.0045ff8a
lea eax, [0x7739a0]
mov dword [esp + 0xb4], eax
lea ecx, [0x834810]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xac], edx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xbc], eax
lea ecx, [esp + 0xac]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
lea eax, [0x834818]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xb4]
mov dword [esp], eax
mov dword [esp + 4], 3
mov dword [esp + 8], 3
call fcn.00408350
lea eax, [0x7d8009]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call fcn.004333f0
call fcn.00431900
call fcn.00431900
nop
call fcn.0045e790
jmp fcn.00412d80