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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov edi, edx
mov dword [esp + 0xc], ecx
mov ebp, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
test ebp, ebp
je 0x10005a40
mov eax, dword [ecx + 0x30]
jmp 0x10005a43
mov eax, dword [ecx + 0x34]
lea esi, [esp + 4]
mov dword [esi], eax
mov dword [esp + 8], ecx
mov eax, dword [ecx + 0x50]
lea ebx, [esp + 0x44]
mov dword [ebx], eax
push 4
push 0x3000
push ebx
push esi
call fcn.10005670
add esp, 0x10
cmp eax, 0xb
je 0x10005a8e
mov dword [esp + 4], 0
push 4
push 0x3000
push ebx
push esi
call fcn.10005670
add esp, 0x10
cmp eax, 0xb
jne 0x10005dc6
mov dword [esp], ebp
mov ebp, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov eax, ecx
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x10005ad7
mov esi, dword [edi + 0x24]
mov eax, dword [esp + 0x20]
lea eax, [eax*8]
lea edi, [eax + eax*4]
xor ebx, ebx
mov eax, dword [ebp + ebx + 0x14]
add eax, esi
mov ecx, dword [esp + 4]
add ecx, dword [ebp + ebx + 0xc]
push dword [ebp + ebx + 0x10]
push eax
push ecx
call fcn.10034390
add esp, 0xc
add ebx, 0x28
cmp edi, ebx
jne 0x10005ab4
mov eax, dword [esp]
mov edx, eax
shl edx, 4
mov esi, dword [esp + 4]
test eax, eax
je 0x10005af0
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x30]
jmp 0x10005af7
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x34]
mov edi, edx
add edi, 0x78
mov eax, esi
sub eax, ecx
mov dword [esp + 0x10], edi
je 0x10005b7a
mov edx, dword [esp + 8]
mov ecx, dword [edx + edi + 0x28]
test ecx, ecx
je 0x10005b7a
cmp dword [edx + edi + 0x2c], 0
je 0x10005b7a
add ecx, esi
mov dword [esp + 0x40], ebp
mov edx, dword [ecx + 4]
test edx, edx
je 0x10005b6b
lea edi, [edx - 8]
cmp edi, 2
jl 0x10005b72
shr edi, 0x1f
add edx, edi
add edx, 0xfffffff8
sar edx, 1
xor edi, edi
movzx ebp, word [ecx + edi*2 + 8]
mov ebx, ebp
and ebx, 0xf000
cmp ebx, 0x3000
jne 0x10005b5d
and ebp, 0xfff
mov ebx, dword [ecx]
add ebx, esi
add dword [ebp + ebx], eax
inc edi
cmp edx, edi
jne 0x10005b3a
mov edx, dword [ecx + 4]
mov ebp, dword [esp + 0x40]
jmp 0x10005b72
xor edx, edx
cmp dword [ecx], 0
je 0x10005b76
add ecx, edx
jmp 0x10005b1f
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
cmp dword [eax + ecx + 0xc], 0
je 0x10005cea
mov ecx, dword [esp + 0x10]
mov ebx, dword [eax + ecx + 8]
test ebx, ebx
je 0x10005cea
add ebx, esi
lea eax, [esi + 2]
mov dword [esp + 0x34], eax
mov edi, dword [ebx + 0xc]
test edi, edi
jne 0x10005bc8
cmp dword [ebx + 0x10], 0
jne 0x10005bc8
cmp dword [ebx], 0
jne 0x10005bc8
cmp dword [ebx + 4], 0
jne 0x10005bc8
cmp dword [ebx + 8], 0
je 0x10005cea
add edi, esi
push edi
call fcn.10037d80
add esp, 4
inc eax
push eax
push edi
lea edi, [esp + 0x1c]
push edi
call fcn.10021560
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x10005db3
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
call fcn.10005588
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp eax, 0xb
jne 0x10005dc6
mov eax, dword [ebx]
mov dword [esp + 0x30], ebx
mov ecx, dword [ebx + 0x10]
add ecx, esi
lea edi, [esi + eax]
test eax, eax
mov dword [esp + 0x3c], ecx
cmove edi, ecx
mov dword [esp + 0x38], edi
mov ebx, dword [edi]
test ebx, ebx
je 0x10005cd8
mov dword [esp + 0x24], edx
xor edi, edi
test ebx, ebx
js 0x10005ca2
mov eax, dword [esp + 0x34]
cmp byte [eax + ebx], 0
je 0x10005cd8
add ebx, eax
push ebx
call fcn.10037d80
add esp, 4
inc eax
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.10021560
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x10005db3
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
call fcn.100055f9
add esp, 0x10
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp eax, 0xb
jne 0x10005dba
mov eax, dword [esp]
jmp 0x10005cb9
movzx eax, bx
push eax
push dword [esp + 0x28]
call sub.kernel32.dll_GetProcAddress
mov ecx, eax
test eax, eax
je 0x10005dbe
mov edx, dword [esp + 0x3c]
mov dword [edx + edi], ecx
mov ecx, dword [esp + 0x38]
mov ebx, dword [ecx + edi + 4]
add edi, 4
mov dword [esp], eax
test ebx, ebx
jne 0x10005c3b
jmp 0x10005cdb
mov eax, dword [esp]
mov ebx, dword [esp + 0x30]
add ebx, 0x14
mov dword [esp], eax
jmp 0x10005ba6
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10005d68
shl eax, 3
lea esi, [eax + eax*4]
xor edi, edi
lea ebx, [esp + 0x14]
mov eax, dword [ebp + edi + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
je 0x10005d61
mov eax, dword [esp + 4]
add eax, dword [ebp + edi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + edi + 0x24]
bt eax, 0x1d
jb 0x10005d37
bt eax, 0x1e
mov ecx, 1
jae 0x10005d4d
shr eax, 0x1f
lea ecx, [eax*2 + 2]
jmp 0x10005d4d
mov ecx, 0x10
bt eax, 0x1e
jae 0x10005d4d
shr eax, 0x1a
and eax, 0xffffffe0
add eax, 0x20
mov ecx, eax
push ecx
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.100056fd
add esp, 0xc
cmp eax, 0xb
jne 0x10005dc6
add edi, 0x28
cmp esi, edi
jne 0x10005cfe
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
cmp dword [eax + ecx + 0x4c], 0
je 0x10005da4
mov eax, dword [eax + ecx + 0x48]
test eax, eax
je 0x10005da4
mov edi, dword [esi + eax + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x10005da4
add edi, 4
push 0
push 1
push esi
call eax
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x10005d90
mov esi, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov dword [eax + 4], esi
mov dword [eax], 0xb
jmp 0x10005dd1
mov eax, 5
jmp 0x10005dc6
mov edx, ecx
jmp 0x10005dc6
mov eax, 2
mov edx, dword [esp]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], edx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret