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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x30], eax
mov eax, dword [0xa2c044]
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x50], 0
mov dword [esp + 4], 0x176
mov dword [esp], 0x34
call fcn.0040a0b4
mov edx, eax
mov dword [esp + 4], 1
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call edx
sub esp, 8
test eax, eax
jne 0x412307
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
and eax, 8
test eax, eax
je 0x4120c8
mov eax, 0xd
jmp 0x412a49
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x5c]
mov eax, dword [eax + 0x58]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x60], 0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
and al, 0xf
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
cmp dword [esp + 0x34], 0
je 0x41230a
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x28]
test eax, eax
je 0x41230a
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov dword [eax + 0x64], edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x6c]
mov eax, dword [eax + 0x68]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
or al, 0xa0
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x70], 0
mov dword [eax + 0x74], 0
mov dword [esp], 0x159
call fcn.00408eb8
mov dword [esp + 0x64], eax
cmp dword [esp + 0x64], 0
jne 0x4121af
mov dword [esp + 0x50], 2
jmp 0x4124f7
mov dword [esp + 4], 0x150
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.004095ec
mov eax, dword [esp + 0x30]
and eax, 0x20
test eax, eax
je 0x412231
mov byte [esp + 0x4e], 8
mov eax, dword [esp + 0x64]
mov word [eax + 2], 8
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
or eax, 0x80000000
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
jmp 0x4126e4
mov eax, dword [esp + 0x30]
and eax, 0x10
test eax, eax
je 0x4122c4
mov dword [esp + 4], 0x116
mov dword [esp], 0x34
call fcn.0040a0b4
mov edx, eax
mov eax, dword [esp + 0x64]
add eax, 0x48
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
sub esp, 0x20
mov edx, eax
mov eax, dword [esp + 0x64]
mov dword [eax + 0x20], edx
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4122ee
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
lea edx, [eax - 1]
mov eax, dword [esp + 0x64]
mov dword [eax + 0x20], edx
jmp 0x4122ee
mov eax, dword [esp + 0x64]
lea edx, [eax + 0x48]
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040e580
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0040e648
mov edx, dword [esp + 0x64]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x412318
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00408f3c
jmp 0x41230b
nop
jmp 0x41230b
nop
mov dword [esp + 0x50], 9
jmp 0x4124f7
mov eax, dword [esp + 0x64]
add eax, 0x48
mov dword [esp + 0x54], eax
jmp 0x41233c
mov eax, dword [esp + 0x54]
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x412337
mov eax, dword [esp + 0x54]
mov byte [eax], 0x2f
add dword [esp + 0x54], 1
mov eax, dword [esp + 0x54]
movzx eax, byte [eax]
test al, al
jne 0x412325
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x64]
mov word [eax], 8
mov byte [esp + 0x4e], 0
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x6b]
mov dword [eax + 0x40], edx
mov eax, dword [esp + 0x64]
mov dword [eax + 0x24], 0x11
mov eax, dword [esp + 0x64]
lea edx, [eax + 0x150]
mov eax, dword [esp + 0x64]
mov dword [eax + 0x44], edx
mov eax, dword [esp + 0x64]
mov dword [eax + 0x28], 9
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x44]
add eax, 2
mov byte [eax], 5
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
test eax, eax
jns 0x4123b8
mov byte [esp + 0x4e], 8
mov eax, dword [esp + 0x64]
mov dword [eax + 0x24], 0
jmp 0x412417
mov eax, dword [esp + 0x30]
and eax, 8
test eax, eax
je 0x4123f6
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
lea edx, [eax - 1]
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + edx + 0x48]
cmp al, 0x2f
je 0x412417
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
lea ecx, [eax + 1]
mov edx, dword [esp + 0x64]
mov dword [edx + 0x20], ecx
mov edx, dword [esp + 0x64]
mov byte [edx + eax + 0x48], 0x2f
jmp 0x412417
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
test eax, eax
je 0x412412
mov dword [esp + 0x50], 0xc
mov eax, dword [esp + 0x64]
mov word [eax], 9
mov byte [esp + 0x4e], 8
mov eax, dword [esp + 0x64]
movzx edx, word [eax]
mov eax, dword [esp + 0x64]
mov word [eax + 0x30], dx
movzx edx, byte [esp + 0x4e]
mov eax, dword [esp + 0x64]
mov word [eax + 2], dx
cmp byte [esp + 0x4e], 0
jne 0x412473
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
mov ecx, edx
xor ecx, 0xffffffff
xor eax, 0xffffffff
or eax, ecx
test eax, eax
je 0x412473
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
mov ecx, dword [esp + 0x50]
mov ebx, 0
add eax, ecx
adc edx, ebx
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add eax, ecx
adc edx, ebx
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x20], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.004190ac
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x412532
nop
jmp 0x4124e0
nop
jmp 0x4124e0
nop
jmp 0x4124e0
nop
jmp 0x4124e0
nop
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00408f3c
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
and eax, 0x40
test eax, eax
je 0x412529
mov dword [esp + 4], 0x97
mov dword [esp], 0x34
call fcn.0040a0b4
mov edx, eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x64]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, dword [esp + 0x50]
jmp 0x412a49
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
test eax, eax
jns 0x41255a
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
add eax, 0xb
mov edx, 0
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
jmp 0x4126e4
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x64]
mov ebx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 0x24]
add ecx, ebx
add ecx, 0x32
mov ebx, 0
add eax, ecx
adc edx, ebx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
cmp dword [esp + 0x50], 0
je 0x4126e3
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x38], 0x12345678
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x3c], 0x23456789
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x40], 0x34567890
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], eax
jmp 0x4125e5
mov eax, dword [esp + 0x5c]
movzx eax, byte [eax]
movsx eax, al
mov edx, dword [esp + 0x3c]
add edx, 0x38
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0041aa50
add dword [esp + 0x5c], 1
cmp dword [esp + 0x5c], 0
je 0x4125f7
mov eax, dword [esp + 0x5c]
movzx eax, byte [eax]
test al, al
jne 0x4125c3
mov dword [esp + 0x58], 0
jmp 0x412631
mov dword [esp + 4], 0x158
mov dword [esp], 0x34
call fcn.0040a0b4
call eax
shrd eax, edx, 7
shr edx, 7
mov edx, eax
lea ecx, [esp + 0x6b]
mov eax, dword [esp + 0x58]
add eax, ecx
mov byte [eax], dl
add dword [esp + 0x58], 1
cmp dword [esp + 0x58], 0xb
jle 0x412601
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
shr eax, 8
mov byte [esp + 0x76], al
mov dword [esp + 0x58], 0
jmp 0x412684
lea edx, [esp + 0x6b]
mov eax, dword [esp + 0x58]
add eax, edx
movzx eax, byte [eax]
movsx eax, al
mov edx, dword [esp + 0x3c]
add edx, 0x38
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0041af38
lea ecx, [esp + 0x6b]
mov edx, dword [esp + 0x58]
add edx, ecx
mov byte [edx], al
add dword [esp + 0x58], 1
cmp dword [esp + 0x58], 0xb
jle 0x412650
mov dword [esp + 8], 0xc
lea eax, [esp + 0x6b]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0041accc
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4124d6
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
add eax, 0xc
adc edx, 0
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
or eax, 0x10
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
jmp 0x4126e4
nop
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x64]
test eax, eax
je 0x412766
cmp byte [esp + 0x4e], 8
jne 0x41270c
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004174a4
jmp 0x412718
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0041855c
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4124d9
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
and eax, 0xffffffef
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00413ff4
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
add eax, ecx
adc edx, ebx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
test eax, eax
jns 0x412814
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
or eax, 8
mov edx, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, dword [esp + 0x30]
and eax, 0x20
test eax, eax
jne 0x412a44
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0041ab24
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x60]
shr eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0041ab24
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x5c]
mov eax, dword [eax + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0041ab24
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x5c]
mov eax, dword [eax + 0x58]
shrd eax, edx, 0x10
shr edx, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0041ab24
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x412a44
jmp 0x4124e0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x50]
mov edx, 0
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov ebp, ecx
xor ebp, eax
mov esi, ebp
xor ebx, edx
mov edi, ebx
mov eax, esi
or eax, edi
test eax, eax
sete al
mov byte [esp + 0x4f], al
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x60]
mov eax, dword [esp + 0x64]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [esp + 0x50]
mov ebx, 0
add eax, ecx
adc edx, ebx
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
and eax, 4
test eax, eax
je 0x41297c
cmp dword [esp + 0x50], 0
jne 0x41297c
movzx edx, byte [esp + 0x4e]
mov eax, dword [esp + 0x64]
mov word [eax + 2], dx
mov eax, dword [esp + 0x64]
movzx eax, word [eax]
movzx eax, ax
and eax, 1
test eax, eax
jne 0x4128e8
mov eax, dword [esp + 0x64]
movzx eax, word [eax]
and eax, 0xfffffff7
mov edx, eax
mov eax, dword [esp + 0x64]
mov word [eax], dx
mov eax, dword [esp + 0x64]
movzx edx, word [eax]
mov eax, dword [esp + 0x64]
mov word [eax + 0x30], dx
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x18]
sub eax, ecx
sbb edx, ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0041a134
test eax, eax
jne 0x412935
nop
mov dword [esp + 0x50], 0x10
jmp 0x4124eb
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.004190ac
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4124dc
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0041a134
test eax, eax
jne 0x4129f5
jmp 0x412928
mov eax, dword [esp + 0x64]
movzx edx, word [eax + 2]
movzx eax, byte [esp + 0x4e]
cmp dx, ax
jne 0x41299c
cmp byte [esp + 0x4e], 0
jne 0x4129a9
cmp byte [esp + 0x4f], 0
jne 0x4129a9
mov dword [esp + 0x50], 0x11
jmp 0x4124eb
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00418f1c
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4124df
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
add eax, 0x10
adc edx, 0
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x64]
movzx edx, word [eax + 0x30]
mov eax, dword [esp + 0x64]
mov word [eax], dx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x412a0d
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x64]
mov dword [eax + 0x4c], edx
jmp 0x412a44
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x60], eax
jmp 0x412a28
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x14c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x14c]
test eax, eax
jne 0x412a1a
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [eax + 0x14c], edx
mov eax, 0
mov edi, dword [esp + 0x7c]
sub edi, dword [0xa2c044]
je 0x412a5a
call fcn.004016b0
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret