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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x5c05aac4]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x10]
push ebx
mov edx, dword [edx + 4]
mov dword [esp + 8], ecx
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x2c], edx
mov eax, dword [ebx]
mov dword [esp + 0x64], ecx
push esi
push edi
mov ecx, dword [eax + 0x34]
mov eax, dword [edx]
and ecx, 0xfc00
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], edx
mov eax, dword [eax + 0x34]
and eax, 0xfc00
cmp ecx, eax
jne 0x5c006b98
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x34], edx
test ecx, ecx
je 0x5c006340
mov eax, dword [ebx]
test dword [eax + 0x34], esi
je 0x5c006b47
mov edi, dword [edx + 0x24]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
test edi, edi
je 0x5c0063f5
cmp dword [ebx + 0x24], eax
je 0x5c0063f5
mov ecx, ebx
call fcn.5c006dcb
mov ecx, edx
mov esi, eax
call fcn.5c006dcb
mov ecx, dword [esi + 4]
mov esi, 0x1828
xor ecx, dword [eax + 4]
test esi, ecx
jne 0x5c006b98
mov ecx, edx
call fcn.5c006dcb
mov eax, dword [eax + 4]
and eax, esi
cmp eax, 8
je 0x5c0063ba
cmp eax, 0x20
je 0x5c0063b3
cmp eax, 0x800
je 0x5c0063af
cmp eax, 0x1000
jne 0x5c006bb4
push 4
jmp 0x5c0063bc
push 2
jmp 0x5c0063bc
mov ecx, pe_nt_image_headers32
jmp 0x5c0063bd
push 0x10
pop ecx
mov eax, dword [ebx + 0x24]
mov esi, dword [edi]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push dword [eax + 0x10]
push ecx
mov ecx, dword [esi + 0x18]
push 0
push 0
push edi
call dword [0x5c05e150]
call dword [esi + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x5c006b9d
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov eax, 0x200
test dword [ebx + 0x1c], eax
je 0x5c006405
lea eax, [ebx + 0x34]
push eax
jmp 0x5c00640c
test dword [edx + 0x1c], eax
je 0x5c00642c
push 0
push 2
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x74]
mov ecx, esi
call dword [0x5c05e150]
call esi
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov eax, 0x800
test dword [ebx + 0x1c], eax
je 0x5c00643c
lea eax, [ebx + 0x3c]
push eax
jmp 0x5c006443
test dword [edx + 0x1c], eax
je 0x5c006463
push 0
push 8
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x74]
mov ecx, esi
call dword [0x5c05e150]
call esi
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], edx
mov dword [esp + 0x8c], ebx
test eax, eax
je 0x5c00649f
mov esi, eax
lea edi, [esp + 0x1bc]
lea eax, [esp + 0x1bc]
mov dword [esp + 0x24], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x5c0064a4
and dword [esp + 0x24], 0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5c0064c6
mov esi, eax
lea edi, [esp + 0x1cc]
lea eax, [esp + 0x1cc]
mov dword [esp + 0x1c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x5c0064cc
xor edi, edi
mov dword [esp + 0x1c], edi
mov esi, ebx
mov dword [esp + 0x48], edx
xor edi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edi
mov edi, dword [esi + 4]
mov ecx, dword [edx + 4]
mov ax, word [edi + 0x1c]
cmp ax, word [ecx + 0x1c]
jne 0x5c0064fa
mov ax, word [edi + 0x1e]
cmp ax, word [ecx + 0x1e]
je 0x5c0065a0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5c00653c
sar dword [eax], 1
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
sar esi, 1
inc edx
sar edx, 1
inc ecx
mov dword [eax + 4], esi
mov eax, edx
sub eax, edi
sar ecx, 1
cmp eax, 1
jae 0x5c006526
lea edx, [edi + 1]
mov edi, dword [esp + 0x24]
mov eax, ecx
sub eax, esi
mov dword [edi + 8], edx
cmp eax, 1
jae 0x5c006539
lea ecx, [esi + 1]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5c00657e
sar dword [eax], 1
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
sar esi, 1
inc edx
sar edx, 1
inc ecx
mov dword [eax + 4], esi
mov eax, edx
sub eax, edi
sar ecx, 1
cmp eax, 1
jae 0x5c006568
lea edx, [edi + 1]
mov edi, dword [esp + 0x1c]
mov eax, ecx
sub eax, esi
mov dword [edi + 8], edx
cmp eax, 1
jae 0x5c00657b
lea ecx, [esi + 1]
mov dword [edi + 0xc], ecx
inc dword [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.5c006da8
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x5c006b98
mov edx, dword [esp + 0x18]
jmp 0x5c0064dc
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x5c0065aa
inc ecx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x5c0065b4
inc eax
sub eax, dword [esp + 0x14]
cmp ecx, eax
je 0x5c0065c2
ja 0x5c006b98
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x2288]
cmp dword [eax + 4], 1
jne 0x5c00683c
mov eax, dword [ecx]
push edx
push ebx
mov edi, dword [eax + 0x11c]
mov ecx, edi
call dword [0x5c05e150]
mov ecx, dword [esp + 0x18]
call edi
test al, al
je 0x5c006834
cmp dword [ebp + 0x18], 0xffffffff
mov cl, 1
mov eax, dword [ebx]
mov esi, dword [eax + 0x60]
jne 0x5c0066c2
mov edx, dword [esi + 8]
test edx, edx
je 0x5c006b44
cmp edx, 6
je 0x5c00669f
mov eax, dword [ebx + 4]
xor edi, edi
cmp dword [eax + 0x20], edi
ja 0x5c006bbb
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 4]
cmp dword [eax + 0x20], edi
ja 0x5c006bbb
mov dword [esp + 0x14], edi
test edx, edx
je 0x5c006689
lea edi, [esi + 0x20]
mov eax, dword [edi]
push ecx
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 4]
push edi
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa8]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x24]
call fcn.5c0134b6
test eax, eax
jne 0x5c006b9d
mov eax, dword [esp + 0x14]
add edi, 0x10
mov ecx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 8]
jb 0x5c006644
push ecx
mov ecx, dword [esp + 0x14]
call fcn.5c006de4
mov ecx, dword [esp + 0x10]
push ebx
call fcn.5c006de4
xor cl, cl
and dword [esi + 8], 0
mov edi, 0x7fffffff
and dword [esi + 0xc], 0
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
test cl, cl
je 0x5c006b44
mov ecx, dword [ebx + 4]
cmp dword [ecx + 0x20], 0
ja 0x5c006bbb
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
cmp dword [eax + 0x20], 0
ja 0x5c006bbb
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x5c0066f7
mov eax, dword [esi]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x50], eax
jmp 0x5c006701
and dword [esp + 0x4c], 0
and dword [esp + 0x50], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5c006718
mov esi, eax
lea edi, [esp + 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x5c00673e
movzx eax, word [ecx + 0x1c]
and dword [esp + 0xa8], 0
and dword [esp + 0xac], 0
mov dword [esp + 0xb4], eax
movzx eax, word [ecx + 0x1e]
mov dword [esp + 0xb0], eax
mov esi, dword [esp + 0x10]
lea eax, [esp + 0xa8]
push ecx
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
push ebx
push edx
call fcn.5c0134b6
test eax, eax
jne 0x5c006b9d
push dword [esp + 0x34]
mov ecx, esi
call fcn.5c006de4
push ebx
mov ecx, esi
call fcn.5c006de4
mov eax, dword [esp + 0x34]
test dword [eax + 0x1c], 0x40000000
jne 0x5c006b44
mov ecx, dword [eax]
test dword [ecx + 0x34], 0x20010
je 0x5c006b44
mov ecx, dword [ecx + 0x54]
test ecx, ecx
je 0x5c0067c6
mov dword [ecx], 1
mov eax, dword [eax]
mov esi, dword [eax + 8]
test dword [esi + 0xc], 0x20000
je 0x5c0067c2
push dword [esi + 0x3c]
mov esi, dword [esi + 0x90]
mov ecx, esi
call dword [0x5c05e150]
call esi
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x60]
test edx, edx
je 0x5c006828
mov edi, dword [eax + 8]
cmp edi, 6
je 0x5c006b44
add edi, 2
mov esi, edx
shl edi, 4
add edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [eax + 8]
add dword [eax + 0xc], 0x10
mov ecx, dword [edx]
cmp ecx, dword [eax + 0x10]
jge 0x5c0067fe
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 8]
cmp ecx, dword [eax + 0x18]
jle 0x5c006809
mov dword [eax + 0x18], ecx
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 0x14]
jge 0x5c006814
mov dword [eax + 0x14], ecx
mov ecx, dword [edx + 0xc]
cmp ecx, dword [eax + 0x1c]
jle 0x5c006b44
mov dword [eax + 0x1c], ecx
jmp 0x5c006b44
mov dword [eax + 8], 6
jmp 0x5c006b44
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
cmp dword [ebp + 0x18], 0xffffffff
mov dword [esp + 0x8c], esi
mov dword [esp + 0x58], edx
mov eax, dword [esi]
mov edi, dword [eax + 0x60]
jne 0x5c00689b
cmp dword [edi + 8], 0
je 0x5c0068d3
cmp dword [edi + 8], 6
je 0x5c00689b
mov eax, dword [ecx + 0x2980]
push 0
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x5c05e150]
call esi
mov eax, dword [esp + 0x10]
push dword [eax + 0x2980]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x5c]
mov esi, dword [eax + 0x70]
mov ecx, esi
call dword [0x5c05e150]
call esi
push 0
push 0x1000000
push dword [esp + 0x2c]
lea eax, [esp + 0x94]
push eax
push ebx
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x6c]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x5c05e150]
call esi
cmp dword [ebp + 0x18], 0xffffffff
mov ebx, eax
mov dword [esp + 0x28], ebx
jne 0x5c006916
jmp 0x5c0068d7
mov ebx, dword [esp + 0x28]
cmp dword [edi + 8], 0
je 0x5c006916
cmp dword [edi + 8], 6
je 0x5c0068fb
push 0
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x5c]
mov esi, dword [eax + 0x70]
mov ecx, esi
call dword [0x5c05e150]
call esi
and dword [edi + 8], 0
mov eax, 0x7fffffff
and dword [edi + 0xc], 0
and dword [edi + 0x18], 0
and dword [edi + 0x1c], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
cmp ebx, 0x80004001
jne 0x5c006a96
mov eax, dword [esp + 0x20]
cmp eax, 0x10
je 0x5c006939
cmp eax, 4
je 0x5c006939
cmp eax, 2
jne 0x5c006c24
xor ebx, ebx
lea eax, [esp + 0xbc]
push 0x78
push ebx
push eax
mov edi, ebx
call sub.msvcrt.dll_memset
push 0x78
lea eax, [esp + 0x14c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x7c
pop eax
push ebx
mov dword [esp + 0x13c], eax
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xbc]
push 1
push eax
push ebx
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x9c]
mov esi, dword [eax + 0x64]
mov ecx, esi
call dword [0x5c05e150]
call esi
test eax, eax
jne 0x5c006c06
push ebx
push 1
lea eax, [esp + 0x140]
push eax
push ebx
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x68]
mov esi, dword [eax + 0x64]
mov ecx, esi
call dword [0x5c05e150]
call esi
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x5c006bc2
mov eax, dword [esp + 0x20]
dec eax
sub eax, 1
je 0x5c006a03
dec eax
sub eax, 1
je 0x5c0069f4
sub eax, 0xc
jne 0x5c006a10
mov edi, dword [esp + 0xc4]
lea edi, [edi + 1]
shr edi, 1
jmp 0x5c006a10
mov edi, dword [esp + 0xc4]
lea edi, [edi + 3]
shr edi, 2
jmp 0x5c006a10
mov edi, dword [esp + 0xc4]
lea edi, [edi + 7]
shr edi, 3
and dword [esp + 0x14], 0
cmp dword [esp + 0xc0], 0
mov esi, dword [esp + 0xdc]
mov ebx, dword [esp + 0x15c]
jbe 0x5c006a58
push edi
push esi
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
add esi, dword [esp + 0xc8]
add ebx, dword [esp + 0x148]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0xc0]
jb 0x5c006a2d
push 0
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x90]
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x5c05e150]
call esi
push 0
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x5c]
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x5c05e150]
call esi
jmp 0x5c006a9e
test ebx, ebx
jne 0x5c006be3
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x5c006adc
sar dword [ebx], 1
mov esi, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebx]
sar esi, 1
inc edx
sar edx, 1
inc ecx
mov eax, edx
sar ecx, 1
sub eax, edi
mov dword [ebx + 4], esi
cmp eax, 1
jae 0x5c006aca
lea edx, [edi + 1]
mov eax, ecx
mov dword [ebx + 8], edx
sub eax, esi
cmp eax, 1
jae 0x5c006ad9
lea ecx, [esi + 1]
mov dword [ebx + 0xc], ecx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x5c006b1a
sar dword [ebx], 1
mov esi, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebx]
sar esi, 1
inc edx
sar edx, 1
inc ecx
mov eax, edx
sar ecx, 1
sub eax, edi
mov dword [ebx + 4], esi
cmp eax, 1
jae 0x5c006b08
lea edx, [edi + 1]
mov eax, ecx
mov dword [ebx + 8], edx
sub eax, esi
cmp eax, 1
jae 0x5c006b17
lea ecx, [esi + 1]
mov dword [ebx + 0xc], ecx
lea ecx, [esp + 0x2c]
call fcn.5c006da8
lea ecx, [esp + 0x48]
call fcn.5c006da8
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x5c006b44
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
test edx, edx
jne 0x5c006840
mov esi, dword [ebp + 0x18]
lea ecx, [esp + 0x78]
call fcn.5c006d71
mov ebx, dword [esp + 0x78]
test ebx, ebx
je 0x5c006c2b
lea ecx, [esp + 0x80]
call fcn.5c006d71
mov edx, dword [esp + 0x80]
mov dword [esp + 0x18], edx
test edx, edx
je 0x5c006b98
mov dword [esp + 0x34], edx
mov eax, dword [ebx]
mov ecx, dword [eax + 0x34]
mov eax, dword [edx]
and ecx, 0xfc00
mov eax, dword [eax + 0x34]
and eax, 0xfc00
cmp ecx, eax
je 0x5c006331
mov eax, 0x80070057
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.5c0501b0
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x80004001
jmp 0x5c006b9d
mov eax, 0x887601ae
jmp 0x5c006b9d
push 0
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x90]
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x5c05e150]
call esi
cmp ebx, 0x887601c2
jne 0x5c006c24
mov eax, dword [esp + 0x10]
test byte [eax + 0x2270], 1
je 0x5c006c24
or dword [eax + 0x1a6c], 0x8000000
xor ebx, ebx
jmp 0x5c006c24
cmp eax, 0x887601c2
jne 0x5c006b9d
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x2270], 1
je 0x5c006b9d
or dword [ecx + 0x1a6c], 0x8000000
mov eax, ebx
jmp 0x5c006b9d
xor eax, eax
jmp 0x5c006b9d