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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
mov ebp, dword [esi + 0x24]
mov eax, dword [ebp]
mov ecx, dword [ebp + 0xc]
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
call fcn.1001fae0
mov dword [esp + 0x50], eax
call fcn.1005d770
xor ebx, ebx
mov byte [esp + 0x13], bl
mov byte [esp + 0x12], bl
mov dword [esp + 0x4c], eax
call fcn.10025be0
mov edx, dword [0x1009cbf8]
mov byte [esp + 0x17], al
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esi + 0x24]
lea edi, [esi + 0xc]
mov byte [edi + 0x20], 2
mov word [edi + 0x1e], bx
cmp dword [edx + 0x20], ebx
mov dword [esp + 0x40], ecx
je 0x1003a1c1
cmp byte [edi + 0x21], bl
jne 0x1003a1c1
cmp byte [esi + 9], bl
je 0x1003a184
mov dword [esi + 0x78], ebx
cmp byte [esi + 8], bl
jne 0x1003a196
lea eax, [esp + 0x5c]
push eax
call fcn.1002d710
add esp, 4
mov ecx, dword [edi + 0x18]
push edi
call dword [ecx + 0x20]
cmp byte [esi + 8], bl
jne 0x1003a1af
lea edx, [esp + 0x5c]
push edx
call fcn.1002d760
add esp, 4
cmp byte [edi + 0x21], bl
je 0x1003a1c1
push 0xfffffed5
call fcn.10029390
add esp, 4
cmp byte [0x1009cbe8], bl
jne 0x1003a54a
cmp byte [ebp + 0x39], bl
je 0x1003a1dc
mov dword [esp + 0x34], 2
jmp 0x1003a1fd
mov eax, dword [0x1009cbf8]
test byte [eax + 0x48], 1
jne 0x1003a1f5
call fcn.10038730
cmp eax, 1
mov dword [esp + 0x34], ebx
jne 0x1003a1fd
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x18]
push ecx
mov ebx, 2
mov byte [esp + 0x1c], 2
mov byte [esp + 0x1d], 0x20
call fcn.10038b70
mov al, byte [0x1009cbe8]
add esp, 4
test al, al
jne 0x1003a54a
mov al, byte [ebp + 0x2c]
test al, al
mov ebx, 0x13
je 0x1003a237
mov ebx, 0x213
mov eax, dword [ebp + 4]
test eax, eax
je 0x1003a244
or ebx, 0x400
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003a251
or ebx, 0x100
call sym.ulrttpd9.dll__ULStorageGetDatabaseFlags_0
test al, 1
je 0x1003a260
or ebx, 0x2800
mov al, byte [ebp + 0x2e]
test al, al
jne 0x1003a26d
or ebx, 0x8000
mov al, byte [ebp + 0x2f]
test al, al
je 0x1003a27a
or ebx, 0x1000
mov eax, dword [ebp + 0x28]
test eax, eax
mov dword [esp + 0x24], 0x21
je 0x1003a29c
or ebx, 0x4000
mov dword [esp + 0x24], 0x23
mov byte [esp + 0x13], 1
mov al, byte [ebp + 0x30]
test al, al
je 0x1003a2a8
or dword [esp + 0x24], 8
cmp byte [0x100964e8], 0x59
je 0x1003a2b6
or dword [esp + 0x24], 0x40
mov al, byte [ebp + 0x2d]
test al, al
je 0x1003a2c5
or dword [esp + 0x24], 0x100
cmp word [esp + 0x34], 2
jne 0x1003a2ff
lea edx, [esp + 0x18]
push edx
mov ebx, 2
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
call fcn.10038b70
xor al, al
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
lea eax, [esp + 0x1c]
push eax
call fcn.10038b70
add esp, 8
jmp 0x1003a368
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], bh
mov byte [esp + 0x19], bl
push ecx
mov ebx, 2
call fcn.10038b70
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x20], ah
mov byte [esp + 0x21], al
call fcn.10038b70
mov al, byte [0x1009cbe8]
add esp, 8
test al, al
jne 0x1003a54a
mov eax, dword [esp + 0x50]
call fcn.10038c30
mov al, byte [0x1009cbe8]
test al, al
jne 0x1003a54a
mov eax, dword [esp + 0x4c]
call fcn.10038c30
mov al, byte [0x1009cbe8]
test al, al
jne 0x1003a54a
mov eax, dword [esp + 0x34]
mov byte [esp + 0x18], ah
mov byte [esp + 0x19], al
lea eax, [esp + 0x18]
push eax
mov ebx, 2
call fcn.10038b70
mov al, byte [0x1009cbe8]
add esp, 4
test al, al
jne 0x1003a54a
mov ecx, dword [0x1009cbf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
mov eax, dword [eax + 0x18]
call fcn.10038c50
mov al, byte [0x1009cbe8]
test al, al
jne 0x1003a54a
mov eax, dword [esp + 0x48]
push esi
call fcn.10039170
mov al, byte [0x1009cbe8]
add esp, 4
test al, al
jne 0x1003a54a
cmp word [esp + 0x34], bx
jne 0x1003a402
mov eax, dword [esi + 0x30]
call fcn.10038c50
xor eax, eax
call fcn.10038c50
mov eax, dword [esi + 0x34]
call fcn.10038c50
call fcn.10038be0
mov al, byte [0x1009cbe8]
pop edi
pop esi
test al, al
pop ebp
sete al
pop ebx
add esp, 0x64
ret
mov eax, dword [ebp + 4]
test eax, eax
je 0x1003a41f
push esi
call fcn.100391d0
mov al, byte [0x1009cbe8]
add esp, 4
test al, al
jne 0x1003a54a
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003a43c
push esi
call fcn.100391d0
mov al, byte [0x1009cbe8]
add esp, 4
test al, al
jne 0x1003a54a
mov eax, dword [esp + 0x44]
push esi
call fcn.10039170
mov al, byte [0x1009cbe8]
add esp, 4
test al, al
jne 0x1003a54a
call fcn.10038730
mov edi, eax
mov al, byte [0x1009cbe8]
test al, al
jne 0x1003a54a
mov ebx, 1
cmp edi, ebx
jne 0x1003a480
mov ecx, dword [0x1009cbf8]
test byte [ecx + 0x48], bl
jne 0x1003a480
xor edi, edi
mov eax, edi
call fcn.10038c50
push esi
mov eax, edi
call fcn.10039350
add esp, 4
call fcn.10038c50
mov eax, dword [esp + 0x40]
cmp eax, ebx
ja 0x1003a4a6
mov eax, 6
jmp 0x1003a4e4
cmp eax, 0xa
ja 0x1003a4b2
mov eax, 5
jmp 0x1003a4e4
cmp eax, 0x64
ja 0x1003a4be
mov eax, 4
jmp 0x1003a4e4
cmp eax, 0x3e8
ja 0x1003a4cc
mov eax, 3
jmp 0x1003a4e4
cmp eax, 0x2710
ja 0x1003a4da
mov eax, 2
jmp 0x1003a4e4
mov edx, 0x186a0
cmp edx, eax
sbb eax, eax
inc eax
call fcn.10038c30
add ebp, 0x33
push ebp
call fcn.10038b70
mov al, byte [ebp]
add esp, 4
xor edi, edi
test al, al
jbe 0x1003a521
mov edi, edi
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x34]
movzx eax, di
mov eax, dword [edx + eax*4]
push esi
call fcn.100391d0
movzx ax, byte [ebp]
add esp, 4
inc edi
cmp di, ax
jb 0x1003a500
mov edi, dword [esp + 0x28]
mov al, byte [edi + 0x30]
test al, al
jne 0x1003a3eb
movzx eax, word [esp + 0x34]
sub eax, 0
je 0x1003a55f
dec eax
je 0x1003a554
push 0xfffffed4
call fcn.10029390
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret
mov eax, esi
call fcn.10038fb0
test al, al
je 0x1003a54a
lea ecx, [esp + 0x4c]
push ecx
push 0
call fcn.1005d290
add esp, 8
test al, al
je 0x1003a54a
mov edx, dword [esp + 0x4c]
push edx
push 0xffff
call fcn.1005d800
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1003a54a
mov al, byte [esp + 0x13]
test al, al
je 0x1003a67a
mov eax, dword [edi + 0x28]
xor cl, cl
test eax, eax
mov byte [esp + 0x11], cl
je 0x1003a5c3
mov dl, byte [esp + 0x12]
cmp cl, byte [esp + 0x17]
jae 0x1003a5bb
test al, 1
je 0x1003a5b3
inc dl
shr eax, 1
inc cl
test eax, eax
jne 0x1003a5a7
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], dl
lea eax, [esp + 0x12]
push eax
mov ebx, 1
call fcn.10038b70
mov ecx, dword [edi + 0x28]
xor al, al
add esp, 4
test ecx, ecx
mov dword [esp + 0x50], ecx
mov byte [esp + 0x11], al
je 0x1003a69e
lea ebx, [ebx]
cmp al, byte [esp + 0x17]
jae 0x1003a69e
test cl, 1
je 0x1003a664
mov edx, dword [0x1009cbf8]
movzx ecx, al
mov eax, dword [edx]
mov edx, dword [eax + 0x24]
mov eax, dword [edx + ecx*4]
push esi
call fcn.10039170
lea eax, [esp + 0x15]
push eax
mov ebx, 1
call fcn.10038b70
movzx ecx, byte [esp + 0x19]
lea edx, [ebp + ecx*8 + 8]
push edx
call fcn.1003c760
mov edi, eax
movzx eax, byte [esp + 0x1d]
lea ecx, [ebp + eax*8 + 0xc]
push ecx
call fcn.1003c760
mov ebx, eax
add esp, 0x10
mov eax, edi
call fcn.10038c50
mov eax, ebx
call fcn.10038c50
mov al, byte [esp + 0x11]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
shr ecx, 1
inc al
test ecx, ecx
mov dword [esp + 0x50], ecx
mov byte [esp + 0x11], al
jne 0x1003a5f0
jmp 0x1003a69e
push ebp
call fcn.1003c760
add ebp, 4
push ebp
mov ebx, eax
call fcn.1003c760
mov ebp, eax
add esp, 8
mov eax, ebx
call fcn.10038c50
mov eax, ebp
call fcn.10038c50
mov edx, dword [esp + 0x4c]
push edx
push 0xffff
call fcn.1005d840
mov al, byte [0x1009cbe8]
add esp, 8
test al, al
jne 0x1003a54a
mov bl, byte [esp + 0x13]
xor eax, eax
test bl, bl
je 0x1003a6f9
mov ecx, dword [0x1009cbf8]
mov ecx, dword [ecx]
mov bp, word [ecx + 2]
test bp, bp
jbe 0x1003a709
mov edx, dword [ecx + 4]
movzx ebp, bp
mov edi, edi
mov ecx, dword [edx]
test byte [ecx + 0x30], 1
jne 0x1003a6f1
mov ecx, dword [ecx + 0x34]
test dword [edi + 0x28], ecx
je 0x1003a6f1
inc eax
add edx, 4
dec ebp
jne 0x1003a6e0
jmp 0x1003a709
mov edx, dword [0x1009cbf8]
mov ecx, dword [edx]
mov ax, word [ecx + 2]
sub ax, word [ecx + 0x20]
call fcn.10038c30
mov al, byte [0x1009cbe8]
test al, al
jne 0x1003a54a
mov edx, dword [0x1009cbf8]
mov eax, dword [edx]
cmp word [eax + 2], 0
mov dword [esp + 0x20], 0
jbe 0x1003a89b
jmp 0x1003a740
movzx ecx, word [esp + 0x20]
mov eax, dword [eax + 4]
mov ebp, dword [eax + ecx*4]
test byte [ebp + 0x30], 1
jne 0x1003a886
test bl, bl
je 0x1003a769
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x34]
test dword [eax + 0x28], ecx
je 0x1003a886
mov ecx, dword [esp + 0x20]
mov al, 4
mov edi, esi
call fcn.10038800
mov eax, dword [ebp]
mov ecx, esi
call fcn.10038f30
call fcn.10029a50
cmp eax, 0xffffffab
je 0x1003a54a
test bl, bl
je 0x1003a7a8
cmp byte [esp + 0x12], 1
je 0x1003a7a8
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0x34]
and eax, dword [ecx + 0x28]
call fcn.10038c50
mov ax, word [ebp + 0x26]
call fcn.10038c30
cmp word [ebp + 0x26], 0
mov dword [esp + 0x50], 0
jbe 0x1003a880
movzx edi, word [esp + 0x50]
mov edx, dword [ebp + 0x14]
shl edi, 2
mov eax, dword [edi + edx]
mov bl, byte [eax]
mov byte [esp + 0x4c], bl
call fcn.10029a50
cmp eax, 0xffffffab
je 0x1003a54a
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 0x2f]
test al, al
je 0x1003a801
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + edi]
mov eax, dword [eax + 4]
mov ecx, esi
call fcn.10038f30
call fcn.10029a50
cmp eax, 0xffffffab
je 0x1003a54a
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10038c10
and bl, 0x1f
add esp, 4
cmp bl, 0x1b
je 0x1003a84c
cmp bl, 3
je 0x1003a84c
cmp bl, 7
je 0x1003a84c
cmp bl, 8
je 0x1003a84c
cmp bl, 9
je 0x1003a84c
cmp bl, 0xb
je 0x1003a84c
cmp bl, 0x1c
je 0x1003a84c
cmp bl, 0x19
je 0x1003a84c
cmp bl, 0x1a
jne 0x1003a869
call fcn.10029a50
cmp eax, 0xffffffab
je 0x1003a54a
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + edi]
mov ax, word [eax + 2]
call fcn.10038c30
mov eax, dword [esp + 0x50]
inc eax
cmp ax, word [ebp + 0x26]
mov dword [esp + 0x50], eax
jb 0x1003a7c4
mov bl, byte [esp + 0x13]
mov edx, dword [0x1009cbf8]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx]
inc ecx
cmp cx, word [eax + 2]
mov dword [esp + 0x20], ecx
jb 0x1003a740
mov eax, dword [edx]
cmp word [eax + 2], 0
mov dword [esp + 0x20], 0
jbe 0x1003ae9b
movzx ecx, word [esp + 0x20]
mov eax, dword [eax + 4]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x48], eax
test byte [ebx + 0x30], 1
mov dword [esp + 0x30], ebx
mov byte [esp + 0x16], 0
mov byte [esp + 0x14], 1
mov byte [esp + 0x13], 1
mov byte [esp + 0x15], 0
jne 0x1003ae6d
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1003a8f9
test dword [ebx + 0x34], eax
je 0x1003ae6d
mov ecx, dword [esp + 0x20]
mov al, 3
mov edi, esi
call fcn.10038800
mov al, byte [0x1009cbe8]
test al, al
jne 0x1003ae84
mov ecx, dword [ebx + 0x18]
mov ebp, dword [ecx]
mov dword [esp + 0x40], ebp
call fcn.10025090
mov edi, eax
mov dword [esp + 0x58], edi
call fcn.10025090
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov al, byte [ebx + 0x30]
shr al, 1
and al, 1
mov byte [esp + 0x11], al
mov eax, dword [ebx + 0x38]
mov edx, dword [eax + 4]
xor esi, esi
xor ecx, ecx
test edx, edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x17], 0
je 0x1003a98f
mov ebp, dword [esp + 0x48]
mov edx, eax
mov edx, dword [edx]
test ebp, edx
je 0x1003a970
or esi, edx
inc ecx
movzx edx, cx
cmp dword [eax + edx*8 + 4], 0
lea edx, [eax + edx*8]
jne 0x1003a968
test esi, esi
je 0x1003a98b
mov eax, dword [ebx + 0x34]
and eax, ebp
cmp esi, eax
je 0x1003a996
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x14], 0
jmp 0x1003a99a
mov ebp, dword [esp + 0x40]
mov al, byte [0x1009cbe8]
test al, al
jne 0x1003ae2e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1002c340
add esp, 4
test al, al
jne 0x1003a9c4
mov al, byte [esp + 0x11]
test al, al
je 0x1003ae2e
mov edx, dword [esp + 0x28]
mov al, byte [edx + 0x2d]
test al, al
jne 0x1003ae2e
lea eax, [esp + 0x1c]
push eax
push 1
push ebp
call fcn.1002a760
push 0
push 1
lea ecx, [esp + 0x30]
push ecx
push ebp
push ebx
call fcn.1002a1f0
add esp, 0x20
mov esi, eax
test si, si
mov dword [esp + 0x34], esi
je 0x1003ae2e
mov al, byte [esp + 0x11]
test al, al
push edi
push esi
je 0x1003aa18
mov edx, dword [esp + 0x28]
push edx
call fcn.1002c210
jmp 0x1003aa22
mov eax, dword [esp + 0x28]
push eax
call fcn.1002c260
mov dword [esp + 0x30], eax
mov al, byte [edi + 1]
add esp, 0xc
cmp al, 9
jne 0x1003aa53
push 0
push 1
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebx
call fcn.1002a1f0
add esp, 0x14
mov esi, eax
test si, si
jne 0x1003aa02
mov dword [esp + 0x34], esi
jmp 0x1003ae2e
test si, si
mov dword [esp + 0x34], esi
je 0x1003ae2e
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
lea esp, [esp]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
push 0
push 1
lea edx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.1002a1f0
add esp, 0x14
mov ebp, eax
test bp, bp
je 0x1003aae4
mov al, byte [esp + 0x11]
test al, al
push edi
push ebp
je 0x1003aaa8
mov edx, dword [esp + 0x28]
push edx
call fcn.1002c210
jmp 0x1003aab2
mov eax, dword [esp + 0x28]
push eax
call fcn.1002c260
mov ebx, eax
mov al, byte [edi + 1]
add esp, 0xc
cmp al, 9
mov dword [esp + 0x38], ebx
jne 0x1003aae4
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
push 0
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.1002a1f0
add esp, 0x14
mov ebp, eax
test bp, bp
jne 0x1003aa92
cmp byte [esi], 0xf
jne 0x1003ae1a
mov cl, byte [esp + 0x11]
test cl, cl
mov al, byte [esi + 1]
mov byte [esp + 0x18], al
je 0x1003ab1d
cmp al, 3
jne 0x1003ab30
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push 5
push 0xf
push eax
push ecx
push 0
call fcn.1002c410
add esp, 0x14
jmp 0x1003addf
test al, al
je 0x1003adda
cmp al, 1
jne 0x1003aba4
mov byte [esp + 0x2c], 1
jmp 0x1003ab45
cmp al, 1
je 0x1003ab29
test al, al
je 0x1003ab29
cmp al, 0xa
jne 0x1003ae21
mov byte [esp + 0x2c], 6
mov al, byte [esp + 0x17]
test al, al
jne 0x1003ab88
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.1005d800
mov ecx, dword [esp + 0x38]
add esp, 8
push 0x7fff
push eax
mov eax, dword [esp + 0x28]
push esi
push eax
call dword [ecx + 0xc]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.1005d840
add esp, 8
mov al, byte [esp + 0x14]
test al, al
je 0x1003abc6
mov al, byte [esp + 0x15]
test al, al
je 0x1003abaf
mov byte [esp + 0x13], 1
mov byte [esp + 0x15], 0
jmp 0x1003abc6
cmp al, 3
jne 0x1003ab38
mov byte [esp + 0x2c], 2
jmp 0x1003ab45
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push ecx
push esi
push edx
call fcn.10025860
add esp, 0xc
mov byte [esp + 0x13], al
test bp, bp
je 0x1003acb8
mov al, byte [esp + 0x11]
test al, al
jne 0x1003acb8
mov al, byte [edi + 1]
test al, al
je 0x1003acb8
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.1005d800
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
add esp, 8
push 0x7fff
push eax
push edi
push ecx
call dword [edx + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.1005d840
mov eax, dword [esp + 0x48]
add esp, 8
push 0x7fff
push edi
push esi
push eax
mov byte [esp + 0x27], 1
call dword [eax + 4]
test al, al
jne 0x1003acb8
mov al, byte [esp + 0x14]
test al, al
je 0x1003ac65
mov al, byte [esp + 0x13]
test al, al
jne 0x1003ac60
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push ecx
push edi
push edx
call fcn.10025860
add esp, 0xc
test al, al
mov byte [esp + 0x13], al
je 0x1003ac65
mov byte [esp + 0x15], 1
movzx eax, byte [esp + 0x18]
dec eax
je 0x1003ac77
sub eax, 2
je 0x1003acb3
sub eax, 7
jne 0x1003acb8
cmp byte [edi + 1], 3
jne 0x1003acb8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], ebx
mov ebx, eax
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], ecx
mov ebp, eax
mov byte [esp + 0x2c], 3
mov al, byte [esp + 0x13]
test al, al
je 0x1003add3
xor eax, eax
mov al, byte [esi + 1]
test al, al
je 0x1003acea
push eax
call fcn.10025520
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
push 0xf
push edx
push eax
push 0
call fcn.1002c410
add esp, 0x18
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x78]
mov al, 4
call fcn.10038800
mov al, byte [edi + 0x2d]
test al, al
jne 0x1003ae2e
movzx eax, byte [esp + 0x2c]
dec eax
cmp eax, 5
ja case.0x1003ad0f.4
jmp dword [eax*4 + 0x1003afa0]
mov al, byte [esp + 0x16]
test al, al
mov eax, dword [esp + 0x78]
je 0x1003ad2d
inc word [eax + 0x12]
mov byte [esp + 0x16], 0
jmp case.0x1003ad0f.4
inc word [eax + 0x10]
jmp case.0x1003ad0f.4
mov byte [esp + 0x16], 1
jmp case.0x1003ad0f.4
mov eax, dword [esp + 0x78]
inc word [eax + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.1005d800
mov edi, eax
add esp, 8
test edi, edi
je 0x1003ae2e
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x78]
push eax
call fcn.10038c10
mov ebx, dword [esp + 0x40]
push edi
call fcn.10038b70
mov al, byte [esp + 0x34]
add esp, 8
cmp al, 2
je 0x1003adaa
mov ecx, dword [esp + 0x30]
cmp word [ecx + 0x28], 0
jbe 0x1003adaa
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push esi
push 0x10039140
push esi
push 0x10039100
push edx
push eax
call fcn.10020390
add esp, 0x18
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.1005d840
mov al, byte [0x1009cbe8]
add esp, 8
test al, al
jne 0x1003ae2e
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
jmp 0x1003addf
call fcn.100387e0
jmp 0x1003addf
mov byte [esp + 0x17], 0
test bp, bp
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x24], ebx
mov ebx, eax
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ebp
jne 0x1003aa70
jmp 0x1003ae2e
push 0xfffffd0d
jmp 0x1003ae26
push 0xfffffed4
call fcn.10029390
add esp, 4
mov esi, dword [esp + 0x78]
lea eax, [esp + 0x18]
push eax
mov ebx, 1
mov byte [esp + 0x1c], 0
call fcn.10038b70
mov ecx, dword [esp + 0x58]
push ecx
call fcn.100250c0
mov edx, dword [esp + 0x60]
push edx
call fcn.100250c0
add esp, 0xc
call fcn.10029a50
cmp eax, 0xffffffab
je 0x1003ae9b
mov edx, dword [0x1009cbf8]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx]
inc ecx
cmp cx, word [eax + 2]
mov dword [esp + 0x20], ecx
jb 0x1003a8b0
jmp 0x1003ae9b
lea eax, [esp + 0x78]
push eax
mov ebx, 1
mov byte [esp + 0x7c], 0
call fcn.10038b70
add esp, 4
mov ecx, dword [esi + 0x24]
lea edi, [esi + 0xc]
xor ebx, ebx
mov byte [edi + 0x20], 5
mov word [edi + 0x1e], bx
cmp dword [ecx + 0x20], ebx
je 0x1003af04
mov al, byte [edi + 0x21]
test al, al
jne 0x1003af04
mov al, byte [esi + 9]
test al, al
je 0x1003aec1
mov dword [esi + 0x78], ebx
mov al, byte [esi + 8]
test al, al
jne 0x1003aed5
lea edx, [esp + 0x5c]
push edx
call fcn.1002d710
add esp, 4
mov eax, dword [edi + 0x18]
push edi
call dword [eax + 0x20]
mov al, byte [esi + 8]
test al, al
jne 0x1003aef0
lea ecx, [esp + 0x5c]
push ecx
call fcn.1002d760
add esp, 4
mov al, byte [edi + 0x21]
test al, al
je 0x1003af04
push 0xfffffed5
call fcn.10029390
add esp, 4
mov al, byte [0x1009cbe8]
test al, al
je 0x1003af27
push 0x10038d10
call fcn.10025ad0
mov eax, dword [0x1009cbf8]
mov cl, byte [eax + 0x48]
add esp, 4
and cl, 0xfe
jmp 0x1003af32
mov eax, dword [0x1009cbf8]
mov cl, byte [eax + 0x48]
or cl, 1
mov byte [eax + 0x48], cl
call fcn.10025c10
push esi
call fcn.10039dc0
push 2
call fcn.1005e900
add esp, 8
call fcn.10029a50
cmp eax, 0xffffffab
je 0x1003af59
call fcn.10038c50
call fcn.10029a50
cmp eax, 0xffffffab
je 0x1003af7d
mov eax, dword [esi + 4]
mov edx, dword [esi]
push eax
call dword [edx + 0x28]
add esp, 4
test al, al
jne 0x1003af7d
push 0xffffffffffffffab
call fcn.10029390
add esp, 4
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 0x2e]
test al, al
jne 0x1003af8e
mov dword [0x1009cbc4], ebx
mov al, byte [0x1009cbe8]
pop edi
pop esi
test al, al
pop ebp
sete al
pop ebx
add esp, 0x64
ret