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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x175c
call fcn.0047ad40
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x3e0]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x228]
test eax, eax
push esi
push edi
mov dword [esp + 0x4c], ebx
jne 0x438115
mov edx, dword [ecx + 0x78]
jmp 0x43811b
mov edx, dword [ecx + 0x1c0]
test eax, eax
mov dword [esp + 0x2c], edx
jne 0x438128
mov esi, dword [ecx + 0x7c]
jmp 0x43812e
mov esi, dword [ecx + 0x1bc]
call fcn.004608c0
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438140
sub eax, edx
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x868]
rep stosd dword es:[edi], eax
mov ecx, 0xc0
lea edi, [esp + 0xc68]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x468]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x1368]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0xf68]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x54c]
mov ecx, dword [ebx + 0x554]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], ecx
jge 0x4381c1
lea edx, [eax + ecx]
test edx, edx
jge 0x4381c1
mov dword [esp + 0x1c], edi
add ecx, eax
cmp esi, ecx
jae 0x4381d5
sub esi, eax
cmp ecx, edi
mov dword [esp + 0x1c], esi
jge 0x4381d5
mov dword [esp + 0x1c], edi
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
call fcn.0044a510
mov eax, dword [ebx + 0x550]
shl eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jle 0x438341
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc68]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
movsx ecx, byte [eax]
push ecx
call fcn.0047b292
add esp, 4
test eax, eax
je 0x438269
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 2
push edx
push eax
call fcn.0047a710
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push 2
push edx
push eax
call dword [0x49e02c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ecx
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x438294
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
push ecx
push edx
call fcn.0047a710
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push 1
push ecx
push edx
call dword [0x49e02c]
mov eax, dword [esp + 0x44]
shl eax, 1
xor ecx, ecx
cmp esi, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov dword [esp + edi*4 + 0x868], eax
mov dword [esp + edi*4 + 0x468], ecx
mov dword [esp + edi*4 + 0x68], eax
jge 0x4382d3
lea edx, [eax + esi]
test edx, edx
mov dword [esp + edi*4 + 0x468], esi
jge 0x4382d3
mov dword [esp + edi*4 + 0x468], ecx
mov dword [esp + edi*4 + 0x68], ecx
mov ecx, dword [esp + 0x2c]
lea edx, [eax + esi]
cmp ecx, edx
jae 0x4382f9
sub eax, ecx
add eax, esi
cmp ecx, esi
mov dword [esp + edi*4 + 0x68], eax
jae 0x4382f9
xor eax, eax
mov dword [esp + edi*4 + 0x468], eax
mov dword [esp + edi*4 + 0x68], eax
jmp 0x4382fb
xor eax, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov dword [esp + edi*4 + 0x1368], eax
mov eax, dword [esp + 0x1c]
add edx, 3
add esi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + edi*4 + 0xf68], eax
mov eax, dword [esp + 0x18]
inc edi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x438216
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x34]
mov esi, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.0044a550
mov ecx, esi
call fcn.0044a870
mov edx, dword [ebx + 0x53c]
mov ecx, dword [ebx + 0x540]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x544]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x554]
mov dword [esp + 0x30], edx
lea edx, [ecx + 8]
imul edx, edx, 0x780
mov esi, eax
mov eax, 1
mov dword [ebx + 0x53c], eax
mov dword [ebx + 0x540], eax
mov dword [ebx + 0x544], eax
mov eax, dword [ebx + 0x550]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jge 0x4383bb
xor eax, eax
cmp ecx, edi
jge 0x4383c1
xor ecx, ecx
mov dword [ebx + 0x550], eax
mov eax, dword [ebx + 0x3dc]
push 0x49f285
mov dword [ebx + 0x554], ecx
push eax
mov ecx, ebx
call fcn.00430530
mov eax, dword [ebx + 0x54c]
imul eax, dword [esp + 0x2c]
add eax, dword [ebx + 0x548]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x24], edi
jle 0x4385b4
lea ecx, [esp + 0xc68]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
jle 0x438460
mov edi, dword [esp + edi*4 + 0x868]
add edi, 8
lea eax, [edi + edi*2]
mov dword [esp + 0x28], eax
jmp 0x438430
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
mov ebx, ecx
shr ecx, 2
add edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
add edx, 0x780
cmp edx, eax
jl 0x438430
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438467
sub eax, edx
cmp dword [ebx + 0x538], 0xa8c
mov edx, dword [ebx + 0x3dc]
mov ecx, 4
jne 0x438490
mov ecx, dword [ebx + 0x554]
add ecx, 4
push eax
mov eax, dword [esp + 0x1c]
push eax
push 4
push ecx
push edx
call dword [0x49e04c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + eax*2]
mov eax, dword [esp + edi*4 + 0x868]
neg eax
add edx, eax
lea edx, [edx + edx*2]
lea eax, [eax + eax*2 + 0x780]
mov dword [esp + 0x60], edx
mov edx, dword [esp + edi*4 + 0xf68]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + edi*4 + 0x1368]
cmp eax, edx
mov dword [esp + 0x10], 0x1e0c
jge 0x438587
sub edx, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + edi*4 + 0x468]
mov eax, dword [esp + edi*4 + 0x68]
cmp edx, eax
jge 0x438564
sub eax, edx
mov dword [esp + 0x28], eax
jmp 0x438510
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
cmp byte [eax + edx], 0
je 0x43854b
mov dl, byte [esp + 0x40]
mov al, byte [esp + 0x38]
mov byte [ecx + esi + 1], al
mov byte [ecx + esi + 2], dl
mov dl, byte [esp + 0x30]
mov byte [ecx + esi], dl
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x58]
mov byte [eax + edx], 0xff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add edx, 3
add ecx, 3
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
jne 0x438510
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
jne 0x4384f3
mov eax, dword [esp + edi*4 + 0x868]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 3
cmp edi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ecx
jl 0x438410
mov eax, dword [ebx + 0x42c]
test eax, eax
je 0x4385e7
mov ecx, dword [ebx + 0x3dc]
push eax
push ecx
call dword [0x49e064]
mov edx, dword [ebx + 0x428]
push edx
call dword [0x49e058]
xor eax, eax
mov dword [ebx + 0x428], eax
mov dword [ebx + 0x42c], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov dword [ebx + 0x540], ecx
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x53c], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x554], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x544], edx
mov dword [ebx + 0x550], eax
call fcn.0044a8e0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8