Function at 0x413338
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 [0xa2e044]
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x50], 0
mov dword [esp + 4], 0x176
mov dword [esp], 0x34
call fcn.0040a750
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 0x41361f
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
and eax, 8
test eax, eax
je 0x4133e0
mov eax, 0xd
jmp 0x413d87
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 0x413622
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x28]
test eax, eax
je 0x413622
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.00409284
mov dword [esp + 0x64], eax
cmp dword [esp + 0x64], 0
jne 0x4134c7
mov dword [esp + 0x50], 2
jmp 0x41380f
mov dword [esp + 4], 0x150
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00409c88
mov eax, dword [esp + 0x30]
and eax, 0x20
test eax, eax
je 0x413549
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 0x413a22
mov eax, dword [esp + 0x30]
and eax, 0x10
test eax, eax
je 0x4135dc
mov dword [esp + 4], 0x116
mov dword [esp], 0x34
call fcn.0040a750
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 0x413606
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 0x413606
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.0040ef0c
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0040efd4
mov edx, dword [esp + 0x64]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x413630
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.00409308
jmp 0x413623
nop
jmp 0x413623
nop
mov dword [esp + 0x50], 9
jmp 0x41380f
mov eax, dword [esp + 0x64]
add eax, 0x48
mov dword [esp + 0x54], eax
jmp 0x413654
mov eax, dword [esp + 0x54]
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x41364f
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 0x41363d
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 0x4136d0
mov byte [esp + 0x4e], 8
mov eax, dword [esp + 0x64]
mov dword [eax + 0x24], 0
jmp 0x41372f
mov eax, dword [esp + 0x30]
and eax, 8
test eax, eax
je 0x41370e
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 0x41372f
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 0x41372f
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
test eax, eax
je 0x41372a
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 0x41378b
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 0x41378b
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.0041aad4
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x41384a
nop
jmp 0x4137f8
nop
jmp 0x4137f8
nop
jmp 0x4137f8
nop
jmp 0x4137f8
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.00409308
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
and eax, 0x40
test eax, eax
je 0x413841
mov dword [esp + 4], 0x97
mov dword [esp], 0x34
call fcn.0040a750
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 0x413d87
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
test eax, eax
jns 0x413872
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 0x413a22
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 0x413a21
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 0x4138fd
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.0041c66c
add dword [esp + 0x5c], 1
cmp dword [esp + 0x5c], 0
je 0x41390f
mov eax, dword [esp + 0x5c]
movzx eax, byte [eax]
test al, al
jne 0x4138db
mov dword [esp + 0x58], 0
jmp 0x41395c
mov dword [esp + 4], 0x158
mov dword [esp], 0x34
call fcn.0040a750
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
mov dword [esp + 4], 1
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call fcn.00402650
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0xb
jle 0x413919
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
shr eax, 8
mov byte [esp + 0x76], al
mov dword [esp + 0x58], 0
jmp 0x4139c2
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.0041cb54
lea ecx, [esp + 0x6b]
mov edx, dword [esp + 0x58]
add edx, ecx
mov byte [edx], al
mov dword [esp + 4], 1
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call fcn.00402650
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0xb
jle 0x41397b
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.0041c8e8
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4137ee
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 0x413a22
nop
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x64]
test eax, eax
je 0x413aa4
cmp byte [esp + 0x4e], 8
jne 0x413a4a
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00418dd8
jmp 0x413a56
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00419f30
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4137f1
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.004154d4
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 0x413b52
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 0x413d82
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.0041c740
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.0041c740
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.0041c740
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.0041c740
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x413d82
jmp 0x4137f8
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 0x413cba
cmp dword [esp + 0x50], 0
jne 0x413cba
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 0x413c26
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.0041bc5c
test eax, eax
jne 0x413c73
nop
mov dword [esp + 0x50], 0x10
jmp 0x413803
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.0041aad4
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4137f4
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.0041bc5c
test eax, eax
jne 0x413d33
jmp 0x413c66
mov eax, dword [esp + 0x64]
movzx edx, word [eax + 2]
movzx eax, byte [esp + 0x4e]
cmp dx, ax
jne 0x413cda
cmp byte [esp + 0x4e], 0
jne 0x413ce7
cmp byte [esp + 0x4f], 0
jne 0x413ce7
mov dword [esp + 0x50], 0x11
jmp 0x413803
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.0041a944
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x4137f7
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 0x413d4b
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x64]
mov dword [eax + 0x4c], edx
jmp 0x413d82
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x60], eax
jmp 0x413d66
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 0x413d58
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 [0xa2e044]
je 0x413d98
call fcn.004016b0
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret