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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, 0xffff8000
push esi
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x28]
mov edx, dword [edi]
mov dword [esp + 0x30], eax
add eax, 2
mov dword [edi + 0x28], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x1012e048
mov eax, dword [edx + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x1012e048
nop dword [eax]
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x1012e040
mov eax, dword [edx + 0x10]
mov esi, ebx
add esi, esi
push dword [eax + esi*8]
push 0
push dword [ebp]
push 0x1b
push edi
call fcn.101095e0
add esp, 0x14
test eax, eax
jne 0x1012e3cf
cmp ebx, 1
je 0x1012e093
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*8 + 4]
cmp byte [eax + 9], 0
je 0x1012e093
mov eax, dword [esp + 0x14]
push dword [eax]
push 1
push dword [eax + 0x14]
push ebx
push edi
call fcn.100f5930
add esp, 0x14
mov esi, dword [edi + 8]
test esi, esi
jne 0x1012e0be
cmp dword [edi + 0x78], esi
jne 0x1012e0ab
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x1012e0ab
mov byte [edi + 0x17], 1
push edi
call fcn.1013a130
mov esi, eax
add esp, 4
test esi, esi
je 0x1012e3cf
mov eax, dword [esp + 0x34]
test eax, eax
jns 0x1012e0c9
mov eax, dword [ebp + 0x2c]
push ebp
push edi
mov dword [esp + 0x20], eax
call fcn.10123a40
mov edx, dword [edi + 0x28]
add esp, 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
lea ecx, [edx + 1]
mov dword [edi + 0x28], ecx
test eax, eax
je 0x1012e0ee
inc dword [eax]
push 0xfffffffffffffff8
push eax
movzx eax, word [ebp + 0x32]
push eax
push 0
push edx
push 0x77
push esi
call fcn.10139bc0
push 0x70
push dword [esp + 0x34]
push ebx
push dword [esp + 0x58]
push edi
call fcn.101255d0
push 0
push dword [esp + 0x64]
push 0x24
push esi
call fcn.10139b00
mov cl, byte [edi + 0x13]
add esp, 0x40
mov dword [esp + 0x1c], eax
test cl, cl
jne 0x1012e136
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
jmp 0x1012e145
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov edx, dword [edi + eax*4 + 0x9c]
mov eax, dword [edi + 0x78]
mov ecx, edi
push 0
test eax, eax
mov dword [esp + 0x18], edx
push 0
cmovne ecx, eax
lea eax, [esp + 0x34]
push eax
push 0
push edx
push dword [esp + 0x44]
mov byte [ecx + 0x14], 1
push ebp
push edi
call fcn.1011f6c0
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0x8b
push esi
call fcn.10139b00
mov edx, dword [esp + 0x5c]
add esp, 0x30
test edx, edx
je 0x1012e1b5
mov eax, dword [edi + 8]
not edx
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
mov eax, dword [edi + 8]
jns 0x1012e1ac
push edx
push eax
push ecx
call fcn.101020c0
add esp, 0xc
jmp 0x1012e1b5
mov ecx, dword [ecx + 0x40]
mov eax, dword [eax + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x1c]
inc eax
push eax
push dword [esp + 0x34]
push 0x27
push esi
call fcn.10139b00
mov eax, dword [esi + 0x6c]
add esp, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x1012e1e7
lea eax, [esi + 0x68]
mov ecx, 0x101a3d48
mov dword [esp + 0x2c], eax
jmp 0x1012e1fa
mov eax, dword [esp + 0x1c]
lea edx, [esi + 0x68]
mov dword [esp + 0x2c], edx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea ecx, [eax + ecx*4]
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x20]
mov dword [ecx + 8], eax
jge 0x1012e21b
push ebx
push dword [esp + 0x1c]
push 0x91
push esi
call fcn.10139b00
add esp, 0x10
mov eax, dword [esp + 0x30]
push 0xfffffffffffffff8
push dword [esp + 0x28]
inc eax
push ebx
push dword [esp + 0x24]
push eax
push 0x71
push esi
call fcn.10139bc0
mov eax, dword [esi + 0x6c]
add esp, 0x1c
test eax, eax
jle 0x1012e25e
cmp dword [esp + 0x34], 0
mov ecx, 0x11
mov edx, 1
cmovge edx, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov word [eax + ecx*4 - 0x12], dx
push 0
push dword [esp + 0x14]
push 0x22
push esi
call fcn.10139b00
add esp, 0x10
mov dword [esp + 0x20], eax
cmp byte [ebp + 0x36], 0
je 0x1012e2dd
push 1
push esi
call fcn.10143940
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
movzx ecx, word [ebp + 0x32]
push ecx
push ebx
push eax
push dword [esp + 0x24]
mov dword [esp + 0x3c], eax
push 0x84
push esi
call fcn.10139c40
push ebp
push 2
push edi
call fcn.101367a0
mov eax, dword [esi]
add esp, 0x2c
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1012e2c7
mov eax, 0x101a3d48
mov dword [eax + 8], edx
jmp 0x1012e2f6
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x1012e2f6
mov eax, dword [edi + 0x78]
mov ecx, edi
mov ebx, dword [esp + 0x14]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
inc eax
push eax
push ebx
push dword [esp + 0x18]
push 0x85
push esi
call fcn.10139b60
add esp, 0x14
test dword [ebp + 0x38], 0x200
jne 0x1012e32c
mov eax, dword [esp + 0x30]
inc eax
push eax
push 0x89
push esi
call fcn.10139aa0
add esp, 0xc
mov eax, dword [esp + 0x30]
push ebx
inc eax
push eax
push 0x8a
push esi
call fcn.10139b00
mov eax, dword [esi + 0x6c]
add esp, 0x10
mov ebp, dword [esp + 0x2c]
test eax, eax
jle 0x1012e35c
lea ecx, [eax + eax*4]
mov edx, 0x10
mov eax, dword [ebp]
mov word [eax + ecx*4 - 0x12], dx
test ebx, ebx
je 0x1012e374
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x1012e374
movzx eax, al
mov dword [edi + eax*4 + 0x9c], ebx
inc byte [edi + 0x13]
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
push ebx
push 0x25
push esi
call fcn.10139b00
mov eax, dword [esi]
add esp, 0x10
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1012e39a
mov eax, 0x101a3d48
jmp 0x1012e3a7
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [ebp]
lea eax, [eax + ecx*4]
mov ebp, dword [esp + 0x30]
push ebp
push 0x7a
push esi
mov dword [eax + 8], edx
call fcn.10139aa0
lea eax, [ebp + 1]
push eax
push 0x7a
push esi
call fcn.10139aa0
push ebx
push 0x7a
push esi
call fcn.10139aa0
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret