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

Disassembly:
mov eax, 0x104c
call fcn.006021b0
mov edx, dword [esp + 0x1054]
mov ecx, dword [edx]
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
je 0x5e6d9c
mov edx, dword [edx + 0xc]
mov eax, ecx
mov ecx, dword [edx + ecx*4 - 4]
imul eax, eax, 0x1c
sub eax, 0x1c
cmp ecx, ebx
jbe 0x5e6d97
mov edi, edi
shr ecx, 1
inc eax
cmp ecx, ebx
ja 0x5e6d90
cmp eax, 7
jg 0x5e6da3
mov esi, 2
jmp 0x5e6de8
cmp eax, 0x24
jg 0x5e6daf
mov esi, 3
jmp 0x5e6de8
cmp eax, 0x8c
jg 0x5e6dbd
mov esi, 4
jmp 0x5e6de8
cmp eax, 0x1c2
jg 0x5e6dcb
mov esi, 5
jmp 0x5e6de8
cmp eax, 0x517
jg 0x5e6dd9
mov esi, 6
jmp 0x5e6de8
xor ecx, ecx
cmp eax, 0xdc9
setg cl
add ecx, 7
mov esi, ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0xc], esi
call fcn.005e2410
add esp, 4
cmp eax, ebx
jne 0x5e7410
push ebp
push edi
lea ecx, [esi - 1]
mov edi, 1
shl edi, cl
mov dword [esp + 0x28], ecx
mov ebp, 1
mov ecx, esi
shl ebp, cl
mov dword [esp + 0x34], edi
cmp edi, ebp
mov dword [esp + 0x30], ebp
jge 0x5e6e6d
mov eax, edi
shl eax, 4
lea esi, [esp + eax + 0x60]
nop
push 0x20
call dword [0x6b4928]
add esp, 4
cmp eax, ebx
mov dword [esi + 8], eax
je 0x5e6e8e
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [esi - 4], ebx
mov dword [esi], 8
mov dword [esi + 4], ebx
inc edi
add esi, 0x10
cmp edi, ebp
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
jl 0x5e6e30
push 0x20
call dword [0x6b4928]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], eax
jne 0x5e6f03
mov esi, 0xfffffffe
jmp 0x5e7385
mov eax, dword [esp + 0x34]
cmp eax, edi
jge 0x5e6ed3
mov ecx, eax
shl ecx, 4
sub edi, eax
lea esi, [esp + ecx + 0x68]
mov ebp, edi
mov edx, dword [esi]
cmp edx, ebx
je 0x5e6ecd
mov eax, dword [esi - 0xc]
cmp eax, ebx
jle 0x5e6eb8
mov ecx, eax
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call dword [0x6b4930]
add esp, 4
mov dword [esi], ebx
mov dword [esi - 0xc], ebx
mov dword [esi - 8], ebx
mov dword [esi - 4], ebx
add esi, 0x10
dec ebp
jne 0x5e6ea3
mov edx, dword [esp + 0x78]
cmp edx, ebx
je 0x5e6ef3
mov ecx, dword [esp + 0x6c]
cmp ecx, ebx
jle 0x5e6ee9
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call dword [0x6b4930]
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x104c
ret
mov esi, dword [esp + 0x1068]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov edx, dword [esi]
imul edx, edx, 0x38
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], ebx
call fcn.005e3510
add esp, 8
cmp eax, ebx
jne 0x5e6f5a
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push esi
push edx
call fcn.005e62c0
add esp, 0x10
mov esi, eax
cmp esi, ebx
jne 0x5e7365
mov ecx, dword [esp + 0x1068]
mov edx, dword [esp + 0x1060]
lea eax, [esp + 0x6c]
push eax
push ecx
push edx
call fcn.005e6c60
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7365
mov edi, dword [esp + 0x34]
shl edi, 4
lea edi, [esp + edi + 0x5c]
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.005e3630
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x5e7365
mov eax, dword [esp + 0x28]
xor ebp, ebp
cmp eax, ebx
jle 0x5e6ff5
push edi
push edi
call fcn.005e5dc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x5e7365
mov edx, dword [esp + 0x1068]
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
call fcn.005e5b70
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7365
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x5e6fb8
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
inc ebp
cmp ebp, eax
jge 0x5e7058
mov eax, ebp
shl eax, 4
lea edi, [esp + eax + 0x5c]
jmp 0x5e7010
push edi
lea ecx, [esp + 0x70]
push ecx
lea edx, [edi - 0x10]
push edx
call fcn.005e5ab0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7365
mov ecx, dword [esp + 0x1068]
lea eax, [esp + 0x38]
push eax
push ecx
push edi
call fcn.005e5b70
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7365
mov eax, dword [esp + 0x30]
inc ebp
add edi, 0x10
cmp ebp, eax
jl 0x5e7010
push 0x20
call dword [0x6b4928]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x5e7075
mov esi, 0xfffffffe
jmp 0x5e7365
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
xor edx, edx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov edx, dword [esp + 0x1064]
mov ecx, 1
mov dword [eax], ecx
mov esi, dword [edx]
xor edi, edi
dec esi
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], esi
xor ebp, ebp
mov dword [esp + 0x2c], ebx
lea esp, [esp]
dec dword [esp + 0x48]
jne 0x5e710b
cmp esi, 0xffffffff
je 0x5e7250
mov ecx, dword [esp + 0x1064]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + esi*4]
dec esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], 0x1c
jmp 0x5e710f
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 0x1b
shl ecx, 1
and edx, 1
cmp edi, ebx
mov dword [esp + 0x14], ecx
jne 0x5e71f4
cmp edx, ebx
je 0x5e70e0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
inc ebp
sub ecx, ebp
shl edx, cl
mov ecx, dword [esp + 0x10]
or edi, edx
cmp ebp, ecx
mov dword [esp + 0x2c], edi
mov edi, 2
jne 0x5e70e0
mov eax, ecx
xor edi, edi
cmp eax, ebx
jle 0x5e7198
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
call fcn.005e5dc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x5e7345
mov edx, dword [esp + 0x1068]
lea ecx, [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.005e5b70
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7345
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x5e7151
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
shl eax, 4
push ecx
lea edx, [esp + eax + 0x60]
push edx
mov eax, ecx
push eax
call fcn.005e5ab0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7345
mov edx, dword [esp + 0x1068]
lea ecx, [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.005e5b70
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7345
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, 1
jmp 0x5e70d6
cmp edi, 1
jne 0x5e7129
cmp edx, ebx
jne 0x5e7129
lea eax, [esp + 0x18]
push eax
mov ecx, eax
push ecx
call fcn.005e5dc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x5e7345
mov eax, dword [esp + 0x1068]
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.005e5b70
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7345
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
jmp 0x5e70e0
cmp edi, 2
jne 0x5e7302
cmp ebp, ebx
jle 0x5e7302
mov edi, dword [esp + 0x1068]
mov dword [esp + 0x14], ebx
lea esp, [esp]
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
call fcn.005e5dc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x5e7345
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.005e5b70
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7345
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
shl eax, 1
test eax, ecx
mov dword [esp + 0x2c], eax
je 0x5e72ed
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x70]
push eax
mov ecx, edx
push ecx
call fcn.005e5ab0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7345
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.005e5b70
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5e7345
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebp
mov dword [esp + 0x14], eax
jl 0x5e7270
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x106c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, edx
mov ebp, dword [eax]
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
mov dword [esp + 0x1c], ebp
mov ebp, dword [eax + 8]
mov dword [esp + 0x20], ebp
mov ebp, dword [eax + 0xc]
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 0xc], ecx
xor esi, esi
jmp 0x5e7349
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
je 0x5e7365
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jle 0x5e735b
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
push ebp
call dword [0x6b4930]
add esp, 4
mov edx, dword [esp + 0x44]
cmp edx, ebx
je 0x5e7385
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
jle 0x5e737b
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call dword [0x6b4930]
add esp, 4
mov edx, dword [esp + 0x78]
cmp edx, ebx
je 0x5e73b5
mov ecx, dword [esp + 0x6c]
cmp ecx, ebx
jle 0x5e739b
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call dword [0x6b4930]
add esp, 4
mov dword [esp + 0x78], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp eax, edx
jge 0x5e740c
mov ecx, eax
shl eax, 4
lea ebp, [esp + eax + 0x68]
mov eax, edx
sub eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [ebp]
cmp edx, ebx
je 0x5e73fe
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jle 0x5e73e8
mov ecx, eax
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
call dword [0x6b4930]
add esp, 4
mov dword [ebp], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov eax, dword [esp + 0x14]
add ebp, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x5e73d2
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
add esp, 0x104c
ret