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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi + 0x14]
not eax
test al, 1
jne 0x413817
lea eax, [esi + 0x74]
push ebx
push eax
push edi
call fcn.0044040d
lea eax, [esi + 0x78]
push eax
push edi
call fcn.0044040d
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.00403e8d
lea eax, [esi + 0x14]
mov ecx, edi
push eax
call fcn.00403e8d
lea eax, [esi + 0x18]
mov ecx, edi
push eax
call fcn.00403e8d
lea eax, [esi + 0x1c]
mov ecx, edi
push eax
call fcn.00403e8d
lea eax, [esi + 0x20]
mov ecx, edi
push eax
call fcn.00403e8d
lea eax, [esi + 0x24]
mov ecx, edi
push eax
call fcn.00403e8d
lea eax, [esi + 0x28]
mov ecx, edi
push eax
call fcn.00403e8d
lea eax, [ebp + 0xa]
mov ecx, edi
push eax
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x34], eax
lea eax, [ebp + 0xa]
push eax
mov ecx, edi
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x38], eax
lea eax, [ebp + 0xa]
push eax
mov ecx, edi
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x3c], eax
lea eax, [ebp + 0xa]
push eax
mov ecx, edi
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x40], eax
lea eax, [ebp + 0xa]
push eax
mov ecx, edi
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x44], eax
lea eax, [ebp + 0xa]
push eax
mov ecx, edi
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x7c], eax
lea eax, [ebp + 0xa]
push eax
mov ecx, edi
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x8c], eax
lea eax, [esi + 0x6c]
push eax
push edi
call fcn.0044040d
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00403e8d
mov eax, dword [ebp - 4]
mov ecx, edi
mov dword [esi + 0x70], eax
lea eax, [ebp + 0xa]
push eax
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x80], eax
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.00403e8d
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x84], eax
je 0x41351c
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi + 0x88], eax
je 0x4134fe
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4134d4
mov ecx, edi
call fcn.00440879
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x84]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4134f0
mov eax, 0x7fff
cmp dword [ebp - 8], eax
ja 0x4134b1
movzx eax, word [ebp - 8]
push eax
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll__lread]
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add dword [ebp - 0x10], eax
cmp dword [ebp - 8], ebx
jne 0x4134a3
jmp 0x4134f0
mov ecx, dword [edi + 0x20]
push 1
push dword [esi + 0x84]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0x88], ebx
mov dword [esi + 0x84], ebx
push dword [esi + 0x88]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x413522
mov ecx, dword [edi + 0x20]
push 1
push dword [esi + 0x84]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0x88], ebx
mov dword [esi + 0x84], ebx
jmp 0x413522
mov dword [esi + 0x88], ebx
lea eax, [ebp + 0xa]
mov ecx, edi
push eax
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov dword [esi + 0x90], eax
lea eax, [esi + 0x98]
push eax
push edi
call fcn.0044040d
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00403e8d
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0x9c], eax
je 0x413618
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi + 0xa0], eax
je 0x4135fa
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4135d0
mov ecx, edi
call fcn.00440879
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x9c]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4135ec
mov eax, 0x7fff
cmp dword [ebp - 8], eax
ja 0x4135ad
movzx eax, word [ebp - 8]
push eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll__lread]
mov eax, dword [ebp - 0x10]
sub dword [ebp - 8], eax
add dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
jne 0x41359f
jmp 0x4135ec
mov ecx, dword [edi + 0x20]
push 1
push dword [esi + 0x9c]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x9c], ebx
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x41361e
mov ecx, dword [edi + 0x20]
push 1
push dword [esi + 0x9c]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x9c], ebx
jmp 0x41361e
mov dword [esi + 0xa0], ebx
lea eax, [esi + 0xa4]
push eax
push edi
call fcn.0044040d
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00403e8d
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0xa8], eax
je 0x4136ff
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi + 0xac], eax
je 0x4136e1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4136b7
mov ecx, edi
call fcn.00440879
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xa8]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4136d3
mov eax, 0x7fff
cmp dword [ebp - 8], eax
ja 0x413694
movzx eax, word [ebp - 8]
push eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll__lread]
mov eax, dword [ebp - 0x10]
sub dword [ebp - 8], eax
add dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
jne 0x413686
jmp 0x4136d3
mov ecx, dword [edi + 0x20]
push 1
push dword [esi + 0xa8]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], ebx
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x413705
mov ecx, dword [edi + 0x20]
push 1
push dword [esi + 0xa8]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], ebx
jmp 0x413705
mov dword [esi + 0xac], ebx
lea eax, [esi + 0xb0]
push eax
push edi
call fcn.0044040d
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00403e8d
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0xb4], eax
je 0x4137e6
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi + 0xb8], eax
je 0x4137c8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x41379e
mov ecx, edi
call fcn.00440879
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xb4]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4137ba
mov eax, 0x7fff
cmp dword [ebp - 8], eax
ja 0x41377b
movzx eax, word [ebp - 8]
push eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll__lread]
mov eax, dword [ebp - 0x10]
sub dword [ebp - 8], eax
add dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
jne 0x41376d
jmp 0x4137ba
mov ecx, dword [edi + 0x20]
push 1
push dword [esi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xb4], ebx
push dword [esi + 0xb8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4137ec
mov ecx, dword [edi + 0x20]
push 1
push dword [esi + 0xb4]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xb4], ebx
jmp 0x4137ec
mov dword [esi + 0xb8], ebx
lea eax, [ebp + 0xa]
mov ecx, edi
push eax
call fcn.00411baf
movzx eax, word [ebp + 0xa]
mov ecx, esi
mov dword [esi + 0x94], eax
call fcn.00413822
test eax, eax
pop ebx
jne 0x413817
mov dword [esi + 0x1bc], 1
pop edi
pop esi
leave
ret 4