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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
or eax, dword [ebp + 0x10]
je 0x10037ecb
mov eax, esi
or eax, edx
je 0x10037ecb
mov eax, ecx
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov esi, 0
add eax, ebx
adc ecx, dword [ebp + 0x20]
neg edx
sbb esi, dword [ebp + 0x30]
xor edx, eax
xor esi, ecx
mov ecx, dword [ebp + 0x24]
or edx, esi
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
jne 0x10037ecb
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov byte [esp + 8], 2
mov dword [esp], 0
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x10], 0
xor edx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
jmp 0x10038259
mov eax, ecx
mov ecx, esi
mov edi, dword [ebp + 0x2c]
add ecx, dword [ebp + 0xc]
adc edx, dword [ebp + 0x10]
mov esi, ecx
add esi, eax
mov eax, esi
mov dword [esp + 8], eax
mov esi, edx
adc esi, dword [ebp + 0x28]
mov dword [esp], esi
mov esi, ebx
mov ebx, 0
neg esi
sbb ebx, dword [ebp + 0x20]
or edi, dword [ebp + 0x30]
je 0x10037f4a
mov edi, eax
mov eax, dword [esp]
xor edi, esi
xor eax, ebx
or eax, edi
jne 0x10037f4a
mov edi, dword [ebp + 8]
mov byte [esp + 8], 4
mov dword [esp], 0
xor esi, esi
mov dword [esp + 4], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x10], 0
xor edx, edx
jmp 0x10038259
xor edx, ebx
xor ecx, esi
mov edi, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x28]
or edx, ecx
mov edx, dword [ebp + 0x24]
jne 0x100381b4
mov eax, edx
or eax, ebx
je 0x100381b4
mov eax, edi
or eax, dword [ebp + 0x30]
je 0x100381b4
mov eax, dword [ebp + 0x30]
cmp edi, 0x64
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
sbb eax, 0
jb 0x10038223
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x10037fb1
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x100382a1
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push 0x17
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100382a1
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x13], 0x30303120
mov dword [eax + 0x10], 0x206e6168
mov dword [eax + 0xc], 0x74207373
mov dword [eax + 8], 0x656c2065
mov dword [eax + 4], 0x62207473
mov dword [eax], 0x756d2070
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x17
mov dword [esp + 0x28], 0x101dfb8c
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x101df70c
mov dword [esp + 0x68], esi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x24], 0x17
mov dword [esp + 0x34], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], ecx
lea esi, [esp + 0x28]
push esi
call fcn.1005f950
add esp, 4
lea eax, [esp + 0x58]
mov dword [esp + 0x84], 0x101dfbc4
mov dword [esp + 0x88], 7
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], 6
mov dword [esp + 0x28], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x2c], fcn.1002d7d0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x34], fcn.1002d7d0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x3c], fcn.1002d7d0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x44], fcn.1002d7d0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c], fcn.1002d7d0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x100313d0
lea eax, [esp + 0x84]
push eax
call fcn.1005f950
add esp, 4
mov dword [esp + 0x28], 0x101dfc28
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x101df70c
mov dword [esp + 0x34], 0
push esi
call fcn.1005f950
add esp, 4
cmp dword [esp + 0x20], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov byte [edi + 0x28], 0
je 0x10038297
push dword [esp + 0x1c]
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x10038297
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov ecx, 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, ebx
or eax, edx
mov eax, dword [esp]
setne byte [esp + 4]
xor esi, esi
neg edi
sbb ecx, dword [ebp + 0x30]
xor eax, ecx
mov ecx, dword [esp + 8]
xor ecx, edi
mov edi, dword [ebp + 8]
or ecx, eax
sete cl
and cl, byte [esp + 4]
mov dword [esp + 4], 0
cmove edx, esi
cmove ebx, esi
mov byte [esp + 8], cl
xor eax, eax
mov ecx, edx
xor edx, edx
mov dword [esp], ebx
jmp 0x1003825b
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp], 0
mov byte [esp + 8], 3
xor esi, esi
mov dword [esp + 4], 0
mov dword [esp + 0x18], 0
mov edx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov ebx, dword [esp + 0x10]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x14]
mov dword [edi], ebx
mov dword [edi + 8], edx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], edx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], esi
mov esi, dword [esp + 4]
mov edx, dword [esp]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x24], ecx
movzx ecx, byte [esp + 8]
mov dword [edi + 0x20], edx
mov byte [edi + 0x28], cl
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x17
push 1
call fcn.1001a7e0
add esp, 8
ud2