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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov dword [ebx + 0xf4], 0
mov cl, byte [eax + 8]
test cl, 0x20
push edi
je 0x43847a
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x43847a
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jae 0x438484
mov eax, dword [esp + 0x48]
test eax, eax
jbe 0x438484
mov edx, dword [esi + 0x14]
dec edx
cmp eax, edx
jae 0x438484
mov ebp, dword [esp + 0x4c]
push ebp
call dword [0x50bb50]
mov edi, eax
add esp, 4
test edi, edi
je 0x438472
push ebp
call fcn.004389b0
add esp, 4
mov dword [ebx + 0xf4], edi
jmp 0x438488
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
jmp 0x438488
mov ebp, dword [esp + 0x4c]
push ebp
call dword [0x50bb00]
lea eax, [ebp + 0x80]
push eax
call dword [0x50bb00]
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [0x50bb00]
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [0x50bb00]
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [0x50bb00]
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [0x50bb00]
mov eax, dword [esp + 0x54]
add esp, 0x18
mov dword [esp + 0x18], 3
test byte [eax + 0xc], 0x20
je 0x4384ed
mov dword [esp + 0x18], 6
mov eax, dword [esi + 0x6c]
mov ecx, dword [0x50bb10]
mov edx, dword [0x50bb24]
mov edi, dword [esp + 0x50]
and eax, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + eax*4 + 0x24]
add ebx, 0x17c
sub ebp, edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], ebp
jmp 0x43853a
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + 0x78]
add ebp, edi
push ecx
mov eax, dword [edx + 0xf0]
push eax
push ebp
push edi
call dword [esp + 0x34]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4385c5
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 0xf0], 2
jle 0x4385c5
mov edx, dword [esp + 0x3c]
test byte [edx + 0xc], 8
je 0x4385c5
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43858b
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.004438c0
add esp, 4
jmp 0x438590
mov eax, 0x47f100
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebx - 0x20]
shr ecx, 0xe
and ecx, 1
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [esp + 0x48]
push ecx
push esi
push 0x3f
push eax
mov eax, dword [edx + 0xf0]
push 0x47ee00
push eax
push ebp
push edi
call fcn.00438d80
add esp, 0x28
mov esi, eax
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp esi, ecx
jge 0x438604
cmp word [edi + 2], ax
jne 0x438604
cmp word [edi + 0x10], ax
jne 0x438604
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0xec]
test ecx, ecx
je 0x4385ee
cmp ecx, 5
jne 0x4385fe
mov cx, word [edi]
cmp cx, 0xffff
jl 0x438604
test cx, cx
jle 0x438609
jmp 0x438604
cmp word [edi], 0
je 0x438609
mov eax, 1
mov esi, dword [esp + 0x1c]
add ebx, 4
mov ecx, esi
add edi, 0x80
shl al, cl
mov cl, byte [esp + 0x14]
or cl, al
dec esi
cmp esi, reloc.KERNEL32.dll_GetProcessHeap
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], esi
jg 0x438532
mov ebx, dword [esp + 0x38]
test byte [ebx + 0x18], 1
je 0x43880b
mov eax, dword [0x50bb18]
mov esi, dword [ebx + 0x6c]
mov edx, dword [esp + 0x40]
mov ecx, dword [0x50bb1c]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x14]
mov edi, dword [edx + 0xf0]
and esi, 1
and al, 0x20
mov dword [esp + 0x30], ecx
mov byte [esp + 0x38], al
je 0x438687
mov edx, dword [ebx + 0x78]
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
push edx
push edi
push eax
push ebp
call dword [esp + esi*4 + 0x3c]
add esp, 0x10
jmp 0x43868b
mov ebp, dword [esp + 0x4c]
mov al, byte [esp + 0x14]
and al, 0x10
mov byte [esp + 0x4c], al
je 0x4386b5
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x50]
push ecx
add edx, 0x80
push edi
lea eax, [ebp + 0x80]
push edx
push eax
call dword [esp + esi*4 + 0x3c]
add esp, 0x10
mov al, byte [esp + 0x14]
and al, 8
mov byte [esp + 0x10], al
je 0x4386df
mov eax, dword [ebx + 0x78]
mov ecx, dword [esp + 0x50]
push eax
add ecx, 0x100
push edi
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push ecx
push eax
call dword [esp + esi*4 + 0x3c]
add esp, 0x10
mov al, byte [esp + 0x14]
and al, 4
mov byte [esp + 0x11], al
je 0x438708
mov edx, dword [ebx + 0x78]
mov eax, dword [esp + 0x50]
push edx
add eax, 0x180
push edi
push eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [esp + esi*4 + 0x3c]
add esp, 0x10
mov al, byte [esp + 0x14]
and al, 2
mov byte [esp + 0x12], al
je 0x438732
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x50]
push ecx
add edx, 0x200
push edi
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push edx
push eax
call dword [esp + esi*4 + 0x3c]
add esp, 0x10
mov al, byte [esp + 0x14]
and al, 1
mov byte [esp + 0x13], al
je 0x43875c
mov eax, dword [ebx + 0x78]
mov ecx, dword [esp + 0x50]
push eax
add ecx, 0x280
push edi
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push ecx
push eax
call dword [esp + esi*4 + 0x3c]
add esp, 0x10
mov al, byte [esp + 0x38]
test al, al
je 0x43876e
push ebp
call dword [0x50bb04]
add esp, 4
mov al, byte [esp + 0x4c]
test al, al
je 0x438786
lea eax, [ebp + 0x80]
push eax
call dword [0x50bb04]
add esp, 4
mov al, byte [esp + 0x10]
test al, al
je 0x43879e
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [0x50bb04]
add esp, 4
mov al, byte [esp + 0x11]
test al, al
je 0x4387b6
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [0x50bb04]
add esp, 4
mov al, byte [esp + 0x12]
test al, al
je 0x4387ce
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [0x50bb04]
add esp, 4
mov al, byte [esp + 0x13]
test al, al
je 0x4387e6
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call dword [0x50bb04]
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push 1
push ebp
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
push ebx
call fcn.00437ee0
add esp, 0x20
mov al, byte [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret