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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
lea eax, [edx + edx]
mov dword [esp + 0x50], 0
mov dword [esp + 0x128], eax
add eax, ecx
push esi
mov esi, eax
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x24], 0
lea eax, [esi - 2]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], eax
push edi
mov edi, dword [ebp + 0x14]
test ebx, ebx
jne 0x411ffa
cmp dword [ebp + 0xc], 0
jne 0x411ffa
test ecx, ecx
jne 0x411ffa
cmp edi, 0xfffffc19
jne 0x411ffa
cmp edx, edi
jne 0x411ffa
push ecx
push ecx
push ecx
push ecx
push ecx
xor edx, edx
call fcn.00409eb0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebp + 0x1c], 0xe20f5a6f
je 0x41200f
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x412ff9
test ecx, ecx
je 0x412ff9
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0x24]
jne 0x412030
test eax, eax
jg 0x412ff9
test eax, eax
jns 0x412040
mov eax, 0xfffffff1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
js 0x412fed
cmp edx, edi
jg 0x412fed
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x412074
cmp ecx, 0x45524350
mov eax, 0xfffffffc
mov edx, 0xffffffe3
cmove eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0xc]
test al, 2
jne 0x412088
mov eax, 0xffffffe4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0xb4], 1
test ecx, 0x8000000
je 0x4120a5
mov eax, 2
jmp 0x4120ad
mov eax, ecx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xf4], eax
mov dword [esp + 0x134], 0xfc00
mov dword [esp + 0x138], 0xdc00
test ecx, 0x2000
jne 0x4120fd
test edx, edx
jle 0x4120fd
cmp edx, edi
jge 0x4120fd
mov eax, esi
mov ecx, 0xfc00
mov ax, word [eax]
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x4120fd
mov eax, 0xfffffff5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
movzx eax, word [ebx + 0x18]
mov dword [esp + 0x44], 0
mov dword [esp + 0x6c], 0x989680
mov dword [esp + 0x70], 0x1770
lea eax, [ebx + eax*2]
mov dword [esp + 0x114], 0
mov dword [esp + 0x90], eax
movzx eax, word [ebx + 0x1c]
movzx ebx, word [ebx + 0x1a]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x8c], ebx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x38], eax
je 0x4121a6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
test cl, 1
je 0x412168
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x18]
test cl, 2
je 0x412177
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0xc]
test cl, 0x10
je 0x412183
mov eax, dword [eax + 0x14]
mov dword [esp + 0x70], eax
test cl, 4
je 0x412195
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x114], eax
test cl, 8
je 0x4121a2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
jmp 0x4121a6
mov eax, dword [esp + 0x38]
test eax, eax
mov edi, dword [ebp + 8]
mov ecx, 0x50a478
mov dword [esp + 0x100], edx
cmovne ecx, eax
mov dword [esp + 0xd8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xcc], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x118], 0
mov eax, dword [eax + 8]
mov dword [esp + 0x50], eax
or eax, dword [ebp + 0x1c]
mov dword [esp + 0x60], eax
movzx eax, word [edi + 0xc]
mov dword [esp + 0x3c], eax
movzx eax, word [edi + 0x1c]
imul ebx, eax
movzx eax, word [edi + 0x18]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x110], 0
mov dword [esp + 0x9c], ecx
add ebx, eax
mov eax, edi
mov edi, dword [ebp + 0x14]
lea eax, [eax + ebx*2]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xdc], eax
mov eax, ebx
mov dword [esp + 0xe0], eax
lea eax, [ebx + edi*2]
mov ebx, eax
mov dword [esp + 0x14], eax
mov eax, edx
mov dword [esp + 0xe4], ebx
shr eax, 5
and eax, 1
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0xc0], eax
mov eax, edx
shr eax, 0x1d
and eax, 1
mov dword [esp + 0xbc], eax
mov eax, edx
shr eax, 0x19
and eax, 1
mov dword [esp + 0xb8], eax
mov eax, ebx
shr eax, 7
and eax, 1
mov dword [esp + 0xac], eax
mov eax, ebx
shr eax, 8
and eax, 1
mov dword [esp + 0xb0], eax
mov eax, ebx
shr eax, 0xa
and eax, 1
mov dword [esp + 0xc4], eax
mov eax, ebx
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x3c]
shr eax, 0xc
and eax, 1
mov dword [esp + 0xd4], eax
lea eax, [ecx + 0x100]
mov dword [esp + 0xa0], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0xa4], eax
mov eax, ebx
and eax, 0x1800000
je 0x41230c
cmp eax, 0x800000
je 0x412325
cmp eax, 0x1000000
jne 0x4123eb
mov dword [esp + 0xd0], 0
jmp 0x412330
test edx, 0x1800000
je 0x412325
mov eax, edx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xd0], eax
jmp 0x412330
mov dword [esp + 0xd0], 1
test ebx, 0x700000
mov eax, ebx
cmove eax, edx
and eax, 0x700000
cmp eax, 0x300000
ja 0x4123dd
je 0x4123a7
test eax, eax
je 0x4123f7
cmp eax, 0x100000
je 0x41236e
cmp eax, 0x200000
jne 0x4123eb
mov ecx, 0xa
jmp 0x412373
mov ecx, 0xd
mov dx, word [esp + 0x96]
mov eax, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov word [esp + 0x94], cx
mov dword [esp + 0x1c], edx
jmp 0x412446
mov eax, 2
mov dword [esp + 0x80], 0
mov ecx, 0xd
mov dword [esp + 0x84], eax
mov edx, 0xa
mov dword [esp + 0x18], ecx
mov dword [esp + 0x94], 0xa000d
mov dword [esp + 0x1c], edx
jmp 0x412446
cmp eax, 0x400000
je 0x41241c
cmp eax, 0x500000
je 0x4123f7
mov eax, 0xffffffe9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dx, word [esp + 0x96]
mov cx, word [esp + 0x94]
mov dword [esp + 0x80], 2
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
jmp 0x41243f
mov ax, word [esp + 0x96]
mov dword [esp + 0x1c], eax
mov ax, word [esp + 0x94]
mov dword [esp + 0x80], 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
cmp dword [esp + 0xf4], 0
mov dword [esp + 0x10], eax
je 0x41246e
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0xc]
test eax, 0x200
je 0x41246e
mov eax, 0xfffffff3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xaaaaaaab
mul dword [ebp + 0x24]
mov eax, 0x55555556
shr edx, 1
lea ebx, [edx + edx*2]
lea ecx, [ebx + ebx]
mov dword [esp + 0x34], ebx
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x12]
test ax, ax
je 0x41250a
mov ecx, eax
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x41250a
inc ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x34], eax
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x74], edi
test edi, edi
jne 0x4124dd
lea eax, [edi - 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 0x96]
mov dword [esp + 0x1c], eax
mov ax, word [esp + 0x94]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x58], 1
mov dword [esp + 0x10], eax
jmp 0x412511
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x74], edi
mov eax, dword [esp + 0x34]
mov ebx, edi
mov dword [esp + 0x78], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xfc], 0xffffffff
lea ecx, [eax + eax]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x7c], eax
test ebx, ebx
je 0x4125b7
mov eax, dword [esp + 0x34]
lea ecx, [ebx + eax*4]
mov eax, dword [ebp + 8]
mov edx, ecx
movzx eax, word [eax + 0x10]
shl eax, 2
sub edx, eax
lea eax, [ebx + 8]
cmp edx, eax
cmovb edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x412581
nop
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x412570
mov edi, dword [esp + 0x74]
mov dword [edi + 4], 0xffffffff
mov eax, dword [esp + 0x74]
mov dword [eax], 0xffffffff
mov ax, word [esp + 0x96]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov ax, word [esp + 0x94]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jmp 0x4125bb
mov edi, dword [esp + 0x10]
test byte [esp + 0x60], 0x10
jne 0x412731
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0xc]
test al, 0x10
je 0x4126f9
movzx ebx, word [edx + 0x14]
movzx edx, bx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x48], 1
mov dword [esp + 0x24], ebx
movzx ecx, bx
test al, 0x20
je 0x412728
mov eax, 0xff
cmp bx, ax
ja 0x4126c2
movzx ebx, byte [edx + ecx]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x28]
cmp bx, 0x7f
ja 0x4126c6
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
movzx eax, ax
mov dword [esp + 0x12c], eax
movzx eax, bx
mov dword [esp + 0x128], eax
movzx eax, word [ecx + 0xc]
test al, 0x40
je 0x412741
movzx ebx, word [ecx + 0x16]
movzx edi, bx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x30], ebx
movzx ecx, bx
test al, al
jns 0x412743
mov eax, 0xff
cmp bx, ax
ja 0x41268d
cmp word [esp + 0x2c], 0x7f
movzx ebx, byte [edx + ecx]
mov dword [esp + 0x30], ebx
jbe 0x412743
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x5172a0]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x50a8c0]
mov ax, word [eax*8 + 0x5161c4]
add ax, word [esp + 0x2c]
movzx ebx, ax
mov dword [esp + 0x30], ebx
jmp 0x412743
mov ebx, dword [esp + 0x28]
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x5172a0]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x50a8c0]
mov ax, word [eax*8 + 0x5161c4]
add ax, bx
movzx eax, ax
mov dword [esp + 0x24], eax
jmp 0x412626
test dword [esp + 0x3c], 0x100
jne 0x412731
mov eax, dword [esp + 0x44]
test eax, eax
je 0x412731
mov edx, dword [esp + 0xa0]
xor ebx, ebx
test byte [eax + 4], 1
je 0x412721
add eax, 8
mov dword [esp + 0x40], eax
xor eax, eax
jmp 0x412626
mov ebx, dword [esp + 0x28]
jmp 0x412622
mov edx, dword [esp + 0xa0]
xor ebx, ebx
xor eax, eax
jmp 0x412626
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
movzx eax, cx
mov dword [esp + 0x144], eax
movzx eax, bx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x140], eax
mov eax, ecx
movzx eax, ax
mov dword [esp + 0x13c], eax
nop dword [eax + eax]
mov eax, 0xffffffe8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe