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

Disassembly:
push edi
push esi
push ebp
sub esp, 0x138
mov esi, ecx
lea ebp, [esi + 0x196d0]
mov edx, dword [esi + 0x196d4]
mov edi, dword [edx]
xor eax, eax
mov dword [edx + 0xc], 0
mov ecx, dword [edx + 8]
push ecx
shr ecx, 2
rep stosd dword es:[edi], eax
pop ecx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0x196dc], 0
mov ecx, dword [0x664384]
mov eax, dword [ecx]
call dword [eax]
cmp eax, 0xffffffff
je 0x43e32b
mov dword [esp + 4], ebp
mov dword [esp], esi
mov dword [esp + 0x18], ebx
mov ebx, eax
mov ecx, dword [0x664384]
mov edx, dword [ecx]
push ebx
call dword [edx + 0xc]
lea edi, [esp + 0x1c]
mov esi, eax
mov ecx, 0x47
rep movsd dword es:[edi], dword [esi]
test dword [esp + 0x30], 0x50000000
jne 0x43e310
test ebx, ebx
jl 0x43e015
mov edx, dword [esp]
cmp ebx, dword [edx + 0x196d8]
jl 0x43e022
lea edx, [ebx + 5]
push edx
mov ecx, dword [esp + 8]
call fcn.00436a80
lea esi, [ebx + ebx*8]
add esi, esi
add esi, esi
add esi, esi
sub esi, ebx
lea edx, [esi + esi]
add edx, edx
mov ebp, dword [esp]
mov ebp, dword [ebp + 0x196d0]
add edx, ebp
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x54]
mov dword [ebp + esi*4], edi
mov edi, dword [esp + 0x20]
mov dword [ebp + esi*4 + 4], edi
mov edi, dword [esp + 0x24]
mov dword [ebp + esi*4 + 8], edi
mov edi, dword [esp + 0x28]
mov dword [ebp + esi*4 + 0xc], edi
mov edi, dword [esp + 0x2c]
mov dword [ebp + esi*4 + 0x10], edi
mov edi, dword [esp + 0x30]
mov dword [ebp + esi*4 + 0x14], edi
mov edi, dword [esp + 0x34]
mov dword [ebp + esi*4 + 0x18], edi
mov edi, dword [esp + 0x38]
mov dword [ebp + esi*4 + 0x1c], edi
mov edi, dword [esp + 0x3c]
mov dword [ebp + esi*4 + 0x20], edi
mov edi, dword [esp + 0x40]
mov dword [ebp + esi*4 + 0x24], edi
mov edi, dword [esp + 0x44]
mov dword [ebp + esi*4 + 0x28], edi
mov edi, dword [esp + 0x48]
mov dword [ebp + esi*4 + 0x2c], edi
mov edi, dword [esp + 0x4c]
mov dword [ebp + esi*4 + 0x30], edi
mov edi, dword [esp + 0x50]
mov dword [ebp + esi*4 + 0x34], edi
lea edi, [ebp + esi*4 + 0x38]
mov ecx, dword [eax]
mov dword [edi], ecx
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [ebp + esi*4 + 0x40]
lea edi, [esp + 0x5c]
mov ecx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edi
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov al, byte [esp + edi + 0x74]
mov byte [edx + edi + 0x58], al
mov cl, byte [esp + edi + 0x75]
mov byte [edx + edi + 0x59], cl
mov bl, byte [esp + edi + 0x76]
mov byte [edx + edi + 0x5a], bl
mov al, byte [esp + edi + 0x77]
mov byte [edx + edi + 0x5b], al
mov esi, dword [esp + edi + 0x78]
mov dword [edx + edi + 0x5c], esi
mov eax, dword [esp + edi + 0x7c]
mov dword [edx + edi + 0x60], eax
mov eax, dword [esp + edi + 0x80]
mov dword [edx + edi + 0x64], eax
mov eax, dword [esp + edi + 0x84]
mov dword [edx + edi + 0x68], eax
mov eax, dword [esp + edi + 0x88]
mov dword [edx + edi + 0x6c], eax
mov eax, dword [esp + edi + 0x8c]
mov dword [edx + edi + 0x70], eax
mov eax, dword [esp + edi + 0x90]
mov dword [edx + edi + 0x74], eax
mov eax, dword [esp + edi + 0x94]
mov dword [edx + edi + 0x78], eax
mov eax, dword [esp + edi + 0x98]
mov dword [edx + edi + 0x7c], eax
mov eax, dword [esp + edi + 0x9c]
mov dword [edx + edi + 0x80], eax
mov eax, dword [esp + edi + 0xa0]
mov dword [edx + edi + 0x84], eax
mov eax, dword [esp + edi + 0xa4]
mov dword [edx + edi + 0x88], eax
mov eax, dword [esp + edi + 0xa8]
mov dword [edx + edi + 0x8c], eax
mov eax, dword [esp + edi + 0xac]
mov dword [edx + edi + 0x90], eax
mov eax, dword [esp + edi + 0xb0]
mov dword [edx + edi + 0x94], eax
mov eax, dword [esp + edi + 0xb4]
mov dword [edx + edi + 0x98], eax
mov eax, dword [esp + edi + 0xb8]
mov dword [edx + edi + 0x9c], eax
mov eax, dword [esp + edi + 0xbc]
mov dword [edx + edi + 0xa0], eax
mov eax, dword [esp + edi + 0xc0]
mov dword [edx + edi + 0xa4], eax
mov eax, dword [esp + edi + 0xc4]
mov dword [edx + edi + 0xa8], eax
add edi, 0x54
cmp edi, 0xa8
jb 0x43e0f3
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
lea ecx, [ebp + esi*4 + 0x100]
lea edx, [esp + 0x11c]
push edx
call fcn.004224b4
mov edx, dword [esp + 0x134]
mov dword [ebp + esi*4 + 0x118], edx
mov ebp, dword [esp]
mov ebp, dword [ebp + 0x196d4]
mov esi, dword [ebp + 4]
cmp ebx, esi
jg 0x43e25f
mov edx, dword [ebp]
mov dword [esp + 0xc], edx
jmp 0x43e2ed
mov eax, 0x55555556
mov edi, esi
imul esi
sar edi, 0x1f
sub edx, edi
inc edx
mov edi, edx
mov dword [esp + 0x14], edx
sar edi, 3
inc edi
mov dword [esp + 0x10], edi
cmp edx, esi
jg 0x43e289
mov edx, dword [ebp]
mov dword [esp + 0xc], edx
jmp 0x43e2df
mov ecx, dword [0x660eec]
mov edx, dword [ecx]
push dword [ebp + 0x10]
mov esi, edi
push esi
call dword [edx]
mov dword [esp + 0xc], eax
mov edi, eax
xor eax, eax
mov ecx, esi
push ecx
shr ecx, 2
rep stosd dword es:[edi], eax
pop ecx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0xc]
mov esi, dword [ebp]
mov ecx, dword [ebp + 8]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp]
test esi, esi
je 0x43e2d8
mov ecx, dword [0x660eec]
mov edx, dword [ecx]
push esi
call dword [edx + 8]
mov edx, dword [esp + 0xc]
mov dword [ebp], edx
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [ebp + 4], esi
mov dword [ebp + 8], edx
mov edx, ebx
sar edx, 5
add edx, edx
add edx, edx
mov edi, 1
mov ecx, ebx
add edx, dword [esp + 0xc]
mov esi, dword [edx]
shl edi, cl
test edi, esi
jne 0x43e310
or esi, edi
mov dword [edx], esi
inc dword [ebp + 0xc]
mov ecx, dword [0x664384]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43dfdf
mov ebx, dword [esp + 0x18]
add esp, 0x138
pop ebp
pop esi
pop edi
ret