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

Disassembly:
sub esp, 0x258
push ebx
mov ebx, dword [esp + 0x260]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
push ebp
xor ebp, ebp
test byte [ecx + 0x22], 0x80
push esi
push edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x64], eax
je 0x1009af77
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov edi, dword [ebx + 0xc]
push 0x38
lea eax, [eax + eax*4]
lea edx, [esp + 0x6c]
lea ecx, [esi + eax*8]
push ebp
push edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], esi
cmp esi, dword [esp + 0x30]
jae 0x1009b3fc
lea esp, [esp]
cmp dword [esp + 0x10], ebp
jne 0x1009b3fc
mov eax, 0x100
test word [esi + 0x10], ax
je 0x1009b3e7
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x158]
mov edx, dword [eax + 0x15c]
and ecx, dword [edi + 8]
and edx, dword [edi + 0xc]
or ecx, edx
je 0x1009b3e7
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
mov esi, dword [esp + 0x4c]
mov esi, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea edx, [edx + ecx*8]
movzx ecx, byte [edi + 0x10]
lea ecx, [ecx + ecx*8]
lea ecx, [esi + ecx*8 + 8]
mov esi, dword [ecx + 0x2c]
mov dword [esp + 0x54], esi
mov esi, dword [ebx]
mov dword [esp + 0x38], esi
mov esi, dword [ebx + 4]
mov dword [esp + 0x3c], esi
mov esi, dword [ebx + 8]
mov dword [esp + 0x40], esi
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x44], esi
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x48], esi
lea esi, [esp + 0xa0]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], esi
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x60], edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], ebx
cmp ebx, edx
jae 0x1009b35f
jmp 0x1009b064
mov ecx, dword [esp + 0x50]
mov edx, 0x200
test word [ebx + 0x10], dx
je 0x1009b074
mov eax, dword [ebx + 0xc]
jmp 0x1009b0b6
mov edx, dword [ebx + 8]
cmp edx, dword [esp + 0x54]
jne 0x1009b345
mov eax, dword [esp + 0x64]
mov edx, dword [eax]
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], edx
mov byte [esp + 0x118], 0x45
mov dword [esp + 0x11c], 1
mov dword [esp + 0x124], ebx
lea eax, [esp + 0x110]
xor edx, edx
mov dword [esp + 0x3c], eax
mov word [esp + 0xa0], dx
mov eax, dword [ecx + 0x10]
test byte [eax + 0x2a], 0x10
je 0x1009b128
lea ecx, [esp + 0x38]
push ecx
call fcn.1009ab40
mov si, word [esp + 0xa4]
xor edx, edx
add esp, 4
xor ecx, ecx
mov dword [esp + 0x10], eax
cmp dx, si
jae 0x1009b151
lea eax, [esp + 0xa8]
jmp 0x1009b100
mov edx, dword [esp + 0x270]
or dword [eax], edx
mov edx, dword [esp + 0x274]
or dword [eax + 4], edx
mov si, word [esp + 0xa0]
movzx edx, si
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x1009b100
jmp 0x1009b151
mov eax, dword [esp + 0x274]
mov ecx, dword [esp + 0x270]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.1009a7a0
mov si, word [esp + 0xac]
add esp, 0xc
mov dword [esp + 0x10], eax
cmp si, bp
je 0x1009b358
cmp dword [esp + 0x34], ebp
je 0x1009b18a
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 sub.MSVCR90.dll_memcpy
add esp, 0xc
mov dword [esp + 0x34], ebp
jmp 0x1009b345
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 sub.MSVCR90.dll_memcpy
movzx ecx, word [esp + 0xe4]
xor eax, eax
add esp, 0xc
cmp ecx, ebp
mov word [esp + 0x68], ax
jle 0x1009b345
lea edx, [esp + 0xe8]
movzx eax, si
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
lea esp, [esp]
cmp eax, ebp
mov dword [esp + 0x20], ebp
jle 0x1009b333
movzx edi, word [edx]
mov ecx, dword [edx - 8]
movzx ebx, word [edx + 2]
mov edx, dword [edx - 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea ebp, [esp + 0xb0]
lea esp, [esp]
movzx ecx, word [ebp + 2]
cmp bx, cx
jb 0x1009b24c
movzx ecx, cx
movzx eax, bx
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x1009b22b
movzx esi, bx
jmp 0x1009b27b
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x1009b23a
lea eax, [ebx + 1]
movzx esi, ax
jmp 0x1009b27b
sub eax, ecx
movzx cx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add cx, bx
movzx esi, cx
jmp 0x1009b27b
movzx edx, bx
movzx eax, cx
lea esi, [edx + 0x31]
cmp eax, esi
jle 0x1009b25e
movzx esi, cx
jmp 0x1009b27b
lea esi, [edx + 0x1f]
cmp eax, esi
jle 0x1009b26b
inc ecx
movzx esi, cx
jmp 0x1009b27b
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
jb 0x1009b2b7
movzx ecx, cx
movzx eax, di
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x1009b296
movzx eax, di
jmp 0x1009b2ea
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x1009b2a5
lea eax, [edi + 1]
movzx eax, ax
jmp 0x1009b2ea
sub eax, ecx
movzx cx, byte [eax + str._n_n_t_t_b_b_a_a_a]
add cx, di
movzx eax, cx
jmp 0x1009b2ea
movzx edx, di
movzx eax, cx
lea edi, [edx + 0x31]
cmp eax, edi
jle 0x1009b2c9
movzx eax, cx
jmp 0x1009b2e6
lea edi, [edx + 0x1f]
cmp eax, edi
jle 0x1009b2d6
inc ecx
movzx eax, cx
jmp 0x1009b2e6
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 + 0x14]
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.10095540
mov ecx, dword [esp + 0x34]
movzx eax, word [esp + 0xb4]
inc ecx
add esp, 0x14
add ebp, 0x10
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x1009b210
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
xor ebp, ebp
add edx, 0x10
sub dword [esp + 0x24], 1
mov dword [esp + 0x2c], edx
jne 0x1009b1e0
add ebx, 0x28
mov dword [esp + 0x28], ebx
cmp ebx, dword [esp + 0x60]
jb 0x1009b060
jmp 0x1009b35f
xor eax, eax
mov word [esp + 0x68], ax
mov edx, dword [edi + 0x2c]
mov eax, dword [esp + 0x1c]
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
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
cmp dword [esp + 0x10], ebp
jne 0x1009b3e0
movzx ebx, word [esp + 0x68]
lea esi, [esp + 0x7a]
jmp 0x1009b3a0
cmp ebp, ebx
jge 0x1009b3de
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 + 0x26c]
mov dword [edi], ecx
mov dword [edi + 4], edx
call fcn.1009a0c0
mov edi, dword [esp + 0x18]
inc ebp
add esi, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x1009b3a0
xor ebp, ebp
mov ebx, dword [esp + 0x26c]
mov esi, dword [esp + 0x1c]
add esi, 0x28
mov dword [esp + 0x1c], esi
cmp esi, dword [esp + 0x30]
jb 0x1009afb0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret