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

Disassembly:
sub esp, 0x298
mov ecx, dword [esp + 0x29c]
mov eax, dword [ecx + 4]
push ebx
push ebp
mov ebp, dword [ecx]
test byte [ebp + 0x22], 0x80
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x50], eax
je 0x10158a05
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov edi, dword [ecx + 0xc]
lea ebx, [eax + eax*2]
push 0x38
shl ebx, 4
lea eax, [esp + 0x6c]
push 0
add ebx, esi
push eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x28], edi
call fcn.101845c0
movzx eax, byte [edi + 0x10]
mov edx, dword [ebp + 4]
lea ecx, [eax + eax*8]
lea eax, [edx + ecx*8 + 8]
mov dword [esp + 0x60], eax
mov eax, dword [eax + 0x2c]
add esp, 0xc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], esi
cmp esi, ebx
jae 0x10158e93
cmp dword [esp + 0x14], 0
jne 0x10158e93
mov ecx, 0x100
test word [esi + 0x12], cx
je 0x10158e7e
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x198]
mov edx, dword [eax + 0x19c]
and ecx, dword [edi + 8]
and edx, dword [edi + 0xc]
or ecx, edx
je 0x10158e7e
mov ecx, dword [eax + 0xc]
lea ebx, [ecx + ecx*2]
mov ecx, dword [esp + 0x2ac]
mov edx, dword [ecx]
shl ebx, 4
add ebx, dword [eax + 0x14]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x40], edx
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
lea edx, [esp + 0xa0]
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], edx
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebp
cmp ebp, ebx
jae 0x10158dff
mov eax, 0x200
test word [ebp + 0x12], ax
je 0x10158b02
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x3c], ecx
jmp 0x10158b48
mov edx, dword [esp + 0x4c]
cmp dword [ebp + 8], edx
jne 0x10158de7
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
lea edx, [esp + 0x110]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], eax
mov byte [esp + 0x118], 0x45
mov dword [esp + 0x11c], 1
mov dword [esp + 0x124], ebp
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x54]
xor eax, eax
mov word [esp + 0xa0], ax
mov edx, dword [ecx + 0x10]
test byte [edx + 0x2c], 0x10
je 0x10158bb8
lea eax, [esp + 0x38]
push eax
call fcn.10158550
mov si, word [esp + 0xa4]
xor edx, edx
add esp, 4
xor ecx, ecx
mov dword [esp + 0x14], eax
cmp dx, si
jae 0x10158be1
lea eax, [esp + 0xa8]
jmp 0x10158b90
mov edx, dword [esp + 0x2b0]
or dword [eax], edx
mov edx, dword [esp + 0x2b4]
or dword [eax + 4], edx
mov si, word [esp + 0xa0]
movzx edx, si
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x10158b90
jmp 0x10158be1
mov eax, dword [esp + 0x2b4]
mov ecx, dword [esp + 0x2b0]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.10158140
mov si, word [esp + 0xac]
add esp, 0xc
mov dword [esp + 0x14], eax
test si, si
je 0x10158df8
cmp dword [esp + 0x24], 0
je 0x10158c1f
movzx eax, si
shl eax, 4
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x78]
push edx
mov word [esp + 0x74], si
call fcn.10184640
add esp, 0xc
mov dword [esp + 0x24], 0
jmp 0x10158de7
mov ax, word [esp + 0x68]
mov word [esp + 0xd8], ax
movzx eax, ax
shl eax, 4
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xe8]
push edx
call fcn.10184640
movzx ecx, word [esp + 0xe4]
xor eax, eax
add esp, 0xc
mov word [esp + 0x68], ax
test ecx, ecx
jle 0x10158de7
lea edx, [esp + 0xe8]
movzx eax, si
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], ecx
jmp 0x10158c80
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x10158dd5
movzx edi, word [edx]
mov ecx, dword [edx - 8]
movzx ebx, word [edx + 2]
mov edx, dword [edx - 4]
mov dword [esp + 0x18], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea ebp, [esp + 0xb0]
movzx ecx, word [ebp + 2]
cmp bx, cx
jl 0x10158cec
movsx ecx, cx
movsx eax, bx
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x10158ccb
movzx esi, bx
jmp 0x10158d1b
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x10158cda
lea eax, [ebx + 1]
movzx esi, ax
jmp 0x10158d1b
sub eax, ecx
movzx cx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add cx, bx
movzx esi, cx
jmp 0x10158d1b
movsx edx, bx
movsx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x10158cfe
movzx esi, cx
jmp 0x10158d1b
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x10158d0b
inc ecx
movzx esi, cx
jmp 0x10158d1b
sub eax, edx
movzx dx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add dx, cx
movzx esi, dx
movzx ecx, word [ebp]
cmp di, cx
jl 0x10158d57
movsx ecx, cx
movsx eax, di
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x10158d36
movzx eax, di
jmp 0x10158d8a
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x10158d45
lea eax, [edi + 1]
movzx eax, ax
jmp 0x10158d8a
sub eax, ecx
movzx cx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add cx, di
movzx eax, cx
jmp 0x10158d8a
movsx edx, di
movsx eax, cx
lea edi, [edx + 0x31]
cmp eax, edi
jle 0x10158d69
movzx eax, cx
jmp 0x10158d86
lea edi, [edx + 0x1f]
cmp eax, edi
jle 0x10158d76
inc ecx
movzx eax, cx
jmp 0x10158d86
sub eax, edx
movzx dx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add dx, cx
movzx eax, dx
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp - 4]
or ecx, dword [esp + 0x5c]
push esi
push eax
mov eax, dword [ebp - 8]
or eax, dword [esp + 0x60]
push ecx
push eax
lea edx, [esp + 0x78]
push edx
call fcn.10152ff0
mov ecx, dword [esp + 0x40]
movzx eax, word [esp + 0xb4]
inc ecx
add esp, 0x14
add ebp, 0x10
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jl 0x10158cb0
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add edx, 0x10
sub dword [esp + 0x28], 1
mov dword [esp + 0x34], edx
jne 0x10158c80
add ebp, 0x30
mov dword [esp + 0x30], ebp
cmp ebp, ebx
jb 0x10158aee
jmp 0x10158dff
xor eax, eax
mov word [esp + 0x68], ax
mov edx, dword [edi + 0x2c]
mov eax, dword [esp + 0x20]
mov ecx, 1
mov word [edi + 0x28], cx
mov dword [edx], eax
xor ecx, ecx
xor eax, eax
mov dword [edi + 0x24], 0x2000
mov word [edi + 0x12], cx
mov byte [edi + 0x11], cl
mov dword [edi + 0x18], eax
xor ebp, ebp
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
cmp dword [esp + 0x14], ecx
jne 0x10158e7e
movzx ebx, word [esp + 0x68]
lea esi, [esp + 0x7a]
lea ecx, [ecx]
cmp ebp, ebx
jge 0x10158e7e
mov dx, word [esi - 2]
mov ax, word [esi]
mov ecx, dword [esi - 0xa]
add dx, 0x12
mov word [edi + 0x14], dx
mov edx, dword [esi - 6]
mov word [edi + 0x16], ax
mov eax, dword [esp + 0x2ac]
mov dword [edi], ecx
mov dword [edi + 4], edx
call fcn.10157950
mov edi, dword [esp + 0x1c]
inc ebp
add esi, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x10158e40
mov esi, dword [esp + 0x20]
add esi, 0x30
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x60]
jb 0x10158a54
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret