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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x7c]
mov esi, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x34], 0xffffffff
movzx eax, byte [esi + 0x10]
mov edx, dword [ecx + 4]
lea eax, [eax + eax*8]
mov ebp, dword [edx + eax*8 + 0x4c]
test ebp, ebp
lea ebx, [edx + eax*8 + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jne 0x438591
test byte [eax + 0x26], 0x20
je 0x43851f
mov ebp, dword [eax + 8]
jmp 0x438591
push 0x38
lea eax, [esp + 0x44]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, 1
mov word [esp + 0x7a], ax
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x38]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov byte [esp + 0x7e], 5
mov dword [esp + 0x58], eax
mov cx, word [eax + 0x24]
mov word [esp + 0x78], cx
mov dx, word [eax + 0x22]
add esp, 0xc
mov word [esp + 0x2c], dx
mov word [esp + 0x2e], 0
test byte [ebx + 0x28], 1
jne 0x438585
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea ebp, [esp + 0x40]
movzx edx, word [eax + 0x22]
cmp dx, 0xa
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], edx
jg 0x4385ad
mov dword [esp + 0x30], 0
jmp 0x4385ce
movsx eax, dx
cdq
push edx
push eax
call fcn.0040da90
mov ecx, dword [esp + 0x30]
add esp, 8
sub ax, 0x21
movzx edx, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], edx
cmp dword [edi + 0x10], 0
jne 0x438715
test byte [ecx + 0x22], 0x80
jne 0x438715
mov ecx, dword [ecx]
mov edx, dword [ecx]
test dword [edx + 0x18], 0x100000
je 0x438715
cmp dword [ebx + 0x44], 0
jne 0x438715
mov ecx, dword [ebx + 0x28]
test cl, 1
jne 0x438715
test byte [eax + 0x26], 0x20
jne 0x438715
test cl, 0xa
jne 0x438715
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea ebx, [eax + eax*2]
shl ebx, 4
add ebx, edi
mov dword [esp + 0x3c], ebx
cmp edi, ebx
jae 0x438706
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x4386ec
push eax
push eax
mov eax, dword [esp + 0x20]
mov ecx, edi
call fcn.00415e80
add esp, 8
test eax, eax
je 0x4386ec
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov eax, 1
mov word [esi + 0x18], ax
mov word [esi + 0x28], ax
mov eax, dword [esi + 0x30]
xor ebx, ebx
mov word [esi + 0x2a], bx
mov dword [esi + 0x1c], ebx
mov dword [eax], edi
lea eax, [ecx + edx + 4]
mov edx, dword [esp + 0x14]
mov word [esi + 0x12], ax
cmp dword [edx + 0xc], ebx
jne 0x4386a7
test byte [edx + 0x26], 2
jne 0x4386a7
add eax, 0x18
mov word [esi + 0x12], ax
mov eax, 0x2b
mov word [esi + 0x16], ax
call fcn.0040db30
mov word [esi + 0x14], ax
mov dword [esi + 0x24], 0x4000
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
or eax, dword [esp + 0x80]
or ecx, dword [esp + 0x84]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x7c]
mov eax, esi
call fcn.0041c0b0
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
add edi, 0x30
cmp dword [esp + 0x10], 0
je 0x438632
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp dword [esp + 0x10], 0
jne 0x438960
mov ebx, dword [esp + 0x18]
test ebp, ebp
je 0x438960
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x43873d
mov edx, dword [ebx + 0x2c]
mov ebx, dword [esp + 0x1c]
push eax
push edx
call fcn.00412940
add esp, 8
test eax, eax
je 0x438949
mov eax, dword [ebp + 8]
movzx edi, word [eax]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
xor eax, eax
mov word [esi + 0x18], ax
mov word [esi + 0x2a], ax
mov word [esi + 0x28], ax
mov byte [esi + 0x11], al
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov word [esi + 0x16], di
mov dword [esi + 0x1c], ebp
mov ecx, dword [eax + 0x2c]
push ecx
push ebp
mov ecx, ebx
call fcn.0040ed50
add esp, 8
cmp dword [ebp + 0x28], 0
mov dword [esp + 0x30], eax
jg 0x4387d5
neg eax
sbb al, al
push edi
lea edx, [edi + 0x10]
push esi
mov dword [esi + 0x24], 0x100
mov word [esi + 0x14], dx
and eax, dword [esp + 0x2c]
mov byte [esi + 0x11], al
mov eax, dword [esp + 0x24]
push eax
call fcn.0040ee00
add esp, 0xc
mov eax, esi
mov ecx, ebx
call fcn.0041c0b0
test eax, eax
mov word [esi + 0x16], di
jne 0x438964
jmp 0x43892a
test byte [ebp + 0x34], 0x20
je 0x4387e8
xor ecx, ecx
mov dword [esi + 0x24], 0x240
xor ebx, ebx
jmp 0x438814
mov eax, ebp
call fcn.0040a240
mov ecx, eax
mov eax, dword [esp + 0x18]
mov ebx, edx
not ecx
and ecx, dword [eax + 0x38]
not ebx
and ebx, dword [eax + 0x3c]
mov edx, ecx
or edx, ebx
mov eax, 0x240
je 0x438811
mov eax, 0x200
mov dword [esi + 0x24], eax
cmp dword [esp + 0x30], 0
jne 0x438862
mov eax, dword [esp + 0x14]
test byte [eax + 0x26], 0x20
jne 0x438862
mov edx, ecx
or edx, ebx
jne 0x43892a
test byte [ebp + 0x34], 4
jne 0x43892a
mov dx, word [ebp + 0x2c]
cmp dx, word [eax + 0x24]
jge 0x43892a
mov eax, dword [esp + 0x28]
test byte [eax + 0x22], 4
jne 0x43892a
cmp dword [0x488018], 0
je 0x43892a
mov edx, dword [esp + 0x30]
neg edx
sbb dl, dl
and edx, dword [esp + 0x24]
mov byte [esi + 0x11], dl
movsx edx, word [ebp + 0x2c]
mov eax, edx
shl eax, 4
sub eax, edx
mov edx, dword [esp + 0x14]
movsx ebp, word [edx + 0x24]
cdq
idiv ebp
or ecx, ebx
lea eax, [eax + edi + 1]
mov word [esi + 0x14], ax
je 0x438901
lea ecx, [edi + 0x10]
movzx ecx, cx
movzx eax, ax
cmp ax, cx
jl 0x4388cc
movsx edx, cx
movsx ecx, ax
lea ebx, [edx + 0x31]
cmp ecx, ebx
jg 0x4388fa
lea ebx, [edx + 0x1f]
cmp ecx, ebx
jle 0x4388ba
add eax, 1
jmp 0x4388fa
sub ecx, edx
movzx dx, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add dx, ax
movzx eax, dx
jmp 0x4388fd
movsx edx, ax
movsx eax, cx
lea ebx, [edx + 0x31]
cmp eax, ebx
jle 0x4388de
movzx eax, cx
jmp 0x4388fd
lea ebx, [edx + 0x1f]
cmp eax, ebx
jle 0x4388ed
add ecx, 1
movzx eax, cx
jmp 0x4388fd
sub eax, edx
movzx ax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx eax, ax
mov word [esi + 0x14], ax
mov ecx, dword [esp + 0x1c]
push edi
push esi
push ecx
call fcn.0040ee00
mov ecx, dword [esp + 0x88]
add esp, 0xc
mov eax, esi
call fcn.0041c0b0
test eax, eax
mov word [esi + 0x16], di
jne 0x438964
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x7c]
push 0
push ebp
push edi
push edx
call fcn.004353c0
add esp, 0x10
cmp dword [edi + 0x44], 0
mov dword [esp + 0x10], eax
jne 0x438960
mov ebp, dword [ebp + 0x14]
add dword [esp + 0x24], 1
cmp dword [esp + 0x10], 0
mov dword [esp + 0x20], ebp
je 0x438711
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret