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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x1012b470]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
xor eax, eax
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0xc]
mov edx, dword [edi + 0x30]
mov esi, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], edx
mov eax, ecx
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x18], ecx
mov edx, eax
or edx, dword [esp + 0x60]
mov ecx, eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x10], ecx
je 0x10041e0e
mov ecx, dword [esp + 0x60]
push ecx
push eax
call fcn.1000a580
mov ecx, dword [esp + 0x18]
add esp, 8
jmp 0x10041e10
xor eax, eax
mov dword [esp + 0x34], eax
test eax, eax
jne 0x10041e22
mov dword [esp + 0x30], 7
jmp 0x10041e78
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.101046c0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
cdq
sub ecx, eax
mov eax, dword [esp + 0x1c]
sbb esi, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x50], eax
jmp 0x10041e78
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x64]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebx + 0xc]
lea ecx, [eax + edx*8]
mov edx, dword [ecx + 0x14]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], edx
cdq
mov ebx, eax
add ebx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
adc edx, esi
cmp dword [ecx + 0x18], 0
mov dword [esp + 0x6c], edx
je 0x10041fac
mov eax, dword [esp + 0x18]
cdq
mov ecx, eax
mov eax, edx
mov dword [esp + 0x10], ecx
shrd ecx, eax, 7
mov dword [esp + 0x14], eax
shr eax, 7
mov edx, ecx
or edx, eax
mov esi, 1
je 0x10041ee4
shrd ecx, eax, 7
shr eax, 7
mov edx, ecx
inc esi
or edx, eax
jne 0x10041ed6
mov eax, esi
cdq
mov esi, eax
add esi, dword [esp + 0x10]
mov eax, dword [edi + 0x10]
mov ecx, edx
adc ecx, dword [esp + 0x14]
add esi, ebx
adc ecx, dword [esp + 0x6c]
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
cmp ecx, edx
jg 0x10041fac
jl 0x10041f17
cmp esi, eax
ja 0x10041fac
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test ecx, ecx
ja 0x10041f61
jb 0x10041f2a
cmp eax, 0x7f
ja 0x10041f37
and al, 0x7f
mov byte [esp + 0x70], al
mov eax, 1
jmp 0x10041f6f
test ecx, ecx
ja 0x10041f61
jb 0x10041f44
cmp eax, 0x3fff
ja 0x10041f61
mov edx, eax
shrd edx, ecx, 7
or dl, 0x80
shr ecx, 7
and al, 0x7f
mov byte [esp + 0x71], al
mov byte [esp + 0x70], dl
mov eax, 2
jmp 0x10041f6f
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.1000f8b0
add esp, 8
push eax
lea eax, [esp + 0x74]
push eax
lea esi, [esp + 0x38]
call fcn.10041480
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x20]
push ecx
push eax
call fcn.10041480
mov esi, dword [edi + 4]
lea ecx, [esp + 0x6c]
push ecx
call fcn.100418a0
add esp, 0x14
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10041e70
add edi, 0x38
push edi
lea esi, [esp + 0x34]
call fcn.10041540
mov ecx, dword [esp + 0x30]
add esp, 4
test ecx, ecx
je 0x10041fc6
mov eax, ecx
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100f9904
mov esp, ebp
pop ebp
ret