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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, 1
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 8], edx
je 0x10bd0d6
mov ecx, dword [esi + 0x68]
cmp ecx, 8
jae 0x10bd0d3
mov bl, byte [edi]
mov byte [ecx + esi + 0x60], bl
add dword [esi + 0x68], edx
add dword [eax], 0xffffffff
add edi, edx
cmp dword [eax], 0
jne 0x10bd0b8
mov dword [ebp + 0xc], edi
mov edx, 8
cmp dword [esi + 0x68], edx
jb 0x10bd524
cmp dword [esi + 0x74], 0
je 0x10bd100
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esi + 0x6c]
mov dword [ecx], ebx
mov ebx, dword [esi + 0x70]
mov dword [ecx + 4], ebx
add ecx, edx
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], edx
mov eax, dword [eax]
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
shr eax, 3
add edi, 0xfffffff8
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], edi
mov eax, ecx
mov edi, ecx
shl ecx, 8
shl edi, 8
shr eax, 8
xor eax, edi
mov edi, edx
and eax, 0xff00ff
xor eax, ecx
mov ecx, edx
shl ecx, 8
shl edx, 8
shr edi, 8
xor edi, ecx
mov ecx, dword [esi + 0x5c]
and edi, 0xff00ff
xor edi, edx
mov edx, dword [esi + 0x58]
rol eax, 0x10
rol edi, 0x10
sub edx, edi
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x1025508]
shr edx, 0x10
and edx, 0xff
sub ecx, dword [edx*4 + 0x1025908]
mov edx, dword [esi + 0x50]
xor eax, ecx
mov ecx, dword [esi + 0x54]
xor edx, eax
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
sub ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x18
add ecx, dword [ebx*4 + 0x1025508]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x1025908]
mov edx, dword [esi + 0x48]
xor edi, ecx
mov ecx, dword [esi + 0x4c]
add edx, edi
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1025908]
shr edx, 0x18
sub ecx, dword [edx*4 + 0x1025508]
mov edx, dword [esi + 0x40]
xor eax, ecx
mov ecx, dword [esi + 0x44]
sub edx, eax
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x1025508]
shr edx, 0x10
and edx, 0xff
sub ecx, dword [edx*4 + 0x1025908]
xor edi, ecx
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
xor edx, edi
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
sub ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x18
add ecx, dword [ebx*4 + 0x1025508]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x1025908]
mov edx, dword [esi + 0x30]
xor eax, ecx
mov ecx, dword [esi + 0x34]
add edx, eax
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1025908]
shr edx, 0x18
sub ecx, dword [edx*4 + 0x1025508]
mov edx, dword [esi + 0x28]
xor edi, ecx
mov ecx, dword [esi + 0x2c]
sub edx, edi
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x1025508]
shr edx, 0x10
and edx, 0xff
sub ecx, dword [edx*4 + 0x1025908]
mov edx, dword [esi + 0x20]
xor eax, ecx
mov ecx, dword [esi + 0x24]
xor edx, eax
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
sub ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x18
add ecx, dword [ebx*4 + 0x1025508]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [edx*4 + 0x1025908]
mov edx, dword [esi + 0x18]
xor edi, ecx
mov ecx, dword [esi + 0x1c]
add edx, edi
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1025908]
shr edx, 0x18
sub ecx, dword [edx*4 + 0x1025508]
xor eax, ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
sub edx, eax
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x1025508]
and edx, 0xff
sub ecx, dword [edx*4 + 0x1025908]
mov edx, dword [esi + 8]
xor edi, ecx
mov ecx, dword [esi + 0xc]
xor edx, edi
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
sub ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
add ecx, dword [ebx*4 + 0x1025508]
and edx, 0xff
xor ecx, dword [edx*4 + 0x1025908]
mov edx, dword [esi]
xor eax, ecx
mov ecx, dword [esi + 4]
add edx, eax
rol edx, cl
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x1024d08]
mov ebx, edx
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x1025108]
mov ebx, edx
shr ebx, 0x10
shr edx, 0x18
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1025908]
mov ebx, 8
sub ecx, dword [edx*4 + 0x1025508]
add dword [ebp - 4], ebx
xor ecx, edi
mov edx, ecx
mov edi, ecx
shr edx, 8
shl edi, 8
xor edx, edi
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
mov ecx, eax
shr ecx, 8
mov edi, eax
shl edi, 8
xor ecx, edi
mov edi, dword [ebp + 0x10]
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
rol edx, 0x10
xor edx, dword [esi + 0x78]
rol ecx, 0x10
xor ecx, dword [esi + 0x7c]
cmp dword [ebp - 8], 0
mov dword [edi], edx
mov dword [edi + 4], ecx
je 0x10bd4b7
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], eax
mov dword [ebp - 8], 0
jmp 0x10bd4c5
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x7c], edx
mov eax, dword [ebp - 0xc]
mov ecx, eax
sub eax, 1
test ecx, ecx
mov dword [ebp - 0xc], eax
je 0x10bd4ee
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add dword [ebp + 8], ebx
add eax, ebx
add edi, ebx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edi
jmp 0x10bd114
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
mov edx, dword [ebp + 0xc]
and eax, 7
push eax
mov dword [esi + 0x68], eax
push edx
lea eax, [esi + 0x60]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov ecx, dword [edi]
mov dword [esi + 0x6c], ecx
mov edx, dword [edi + 4]
add esp, 0xc
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], 1
add dword [ebx], 0xfffffff8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10