Function at 0x1003a0f0
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 + 0x24], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
call fcn.100200a0
mov dword [esp + 0x50], eax
call fcn.1005d300
xor ebx, ebx
mov byte [esp + 0x13], bl
mov byte [esp + 0x12], bl
mov dword [esp + 0x4c], eax
call fcn.10026040
mov edx, dword [0x10090b38]
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 0x1003a1a1
cmp byte [edi + 0x21], bl
jne 0x1003a1a1
cmp byte [esi + 9], bl
je 0x1003a164
mov dword [esi + 0x78], ebx
cmp byte [esi + 8], bl
jne 0x1003a176
lea eax, [esp + 0x5c]
push eax
call fcn.1002d940
add esp, 4
mov ecx, dword [edi + 0x18]
push edi
call dword [ecx + 0x20]
cmp byte [esi + 8], bl
jne 0x1003a18f
lea edx, [esp + 0x5c]
push edx
call fcn.1002d990
add esp, 4
cmp byte [edi + 0x21], bl
je 0x1003a1a1
push 0xfffffed5
call fcn.10029780
add esp, 4
cmp byte [0x10090b28], bl
jne 0x1003a52a
cmp byte [ebp + 0x39], bl
je 0x1003a1bc
mov dword [esp + 0x34], 2
jmp 0x1003a1dd
mov eax, dword [0x10090b38]
test byte [eax + 0x48], 1
jne 0x1003a1d5
call fcn.10038860
cmp eax, 1
mov dword [esp + 0x34], ebx
jne 0x1003a1dd
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.10038ca0
mov al, byte [0x10090b28]
add esp, 4
test al, al
jne 0x1003a52a
mov al, byte [ebp + 0x2c]
test al, al
mov ebx, 0x52
je 0x1003a217
mov ebx, 0x252
mov eax, dword [ebp + 4]
test eax, eax
je 0x1003a224
or ebx, 0x400
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003a231
or ebx, 0x100
call sym.ulrtw9.dll__ULStorageGetDatabaseFlags_0
test al, 1
je 0x1003a240
or ebx, 0x2800
mov al, byte [ebp + 0x2e]
test al, al
jne 0x1003a24d
or ebx, 0x8000
mov al, byte [ebp + 0x2f]
test al, al
je 0x1003a25a
or ebx, 0x1000
mov eax, dword [ebp + 0x28]
test eax, eax
mov dword [esp + 0x28], 0x21
je 0x1003a27c
or ebx, 0x4000
mov dword [esp + 0x28], 0x23
mov byte [esp + 0x13], 1
mov al, byte [ebp + 0x30]
test al, al
je 0x1003a288
or dword [esp + 0x28], 8
cmp byte [0x1008a4d8], 0x59
je 0x1003a296
or dword [esp + 0x28], 0x40
mov al, byte [ebp + 0x2d]
test al, al
je 0x1003a2a5
or dword [esp + 0x28], 0x100
cmp word [esp + 0x34], 2
jne 0x1003a2df
lea edx, [esp + 0x18]
push edx
mov ebx, 2
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
call fcn.10038ca0
xor al, al
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
lea eax, [esp + 0x1c]
push eax
call fcn.10038ca0
add esp, 8
jmp 0x1003a348
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], bh
mov byte [esp + 0x19], bl
push ecx
mov ebx, 2
call fcn.10038ca0
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x20], ah
mov byte [esp + 0x21], al
call fcn.10038ca0
mov al, byte [0x10090b28]
add esp, 8
test al, al
jne 0x1003a52a
mov eax, dword [esp + 0x50]
call fcn.10038d60
mov al, byte [0x10090b28]
test al, al
jne 0x1003a52a
mov eax, dword [esp + 0x4c]
call fcn.10038d60
mov al, byte [0x10090b28]
test al, al
jne 0x1003a52a
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.10038ca0
mov al, byte [0x10090b28]
add esp, 4
test al, al
jne 0x1003a52a
mov ecx, dword [0x10090b38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
mov eax, dword [eax + 0x18]
call fcn.10038d80
mov al, byte [0x10090b28]
test al, al
jne 0x1003a52a
mov eax, dword [esp + 0x48]
push esi
call fcn.100392a0
mov al, byte [0x10090b28]
add esp, 4
test al, al
jne 0x1003a52a
cmp word [esp + 0x34], bx
jne 0x1003a3e2
mov eax, dword [esi + 0x30]
call fcn.10038d80
xor eax, eax
call fcn.10038d80
mov eax, dword [esi + 0x34]
call fcn.10038d80
call fcn.10038d10
mov al, byte [0x10090b28]
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 0x1003a3ff
push esi
call fcn.10039300
mov al, byte [0x10090b28]
add esp, 4
test al, al
jne 0x1003a52a
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003a41c
push esi
call fcn.10039300
mov al, byte [0x10090b28]
add esp, 4
test al, al
jne 0x1003a52a
mov eax, dword [esp + 0x44]
push esi
call fcn.100392a0
mov al, byte [0x10090b28]
add esp, 4
test al, al
jne 0x1003a52a
call fcn.10038860
mov edi, eax
mov al, byte [0x10090b28]
test al, al
jne 0x1003a52a
mov ebx, 1
cmp edi, ebx
jne 0x1003a460
mov ecx, dword [0x10090b38]
test byte [ecx + 0x48], bl
jne 0x1003a460
xor edi, edi
mov eax, edi
call fcn.10038d80
push esi
mov eax, edi
call fcn.10039490
add esp, 4
call fcn.10038d80
mov eax, dword [esp + 0x40]
cmp eax, ebx
ja 0x1003a486
mov eax, 6
jmp 0x1003a4c4
cmp eax, 0xa
ja 0x1003a492
mov eax, 5
jmp 0x1003a4c4
cmp eax, 0x64
ja 0x1003a49e
mov eax, 4
jmp 0x1003a4c4
cmp eax, 0x3e8
ja 0x1003a4ac
mov eax, 3
jmp 0x1003a4c4
cmp eax, 0x2710
ja 0x1003a4ba
mov eax, 2
jmp 0x1003a4c4
mov edx, 0x186a0
cmp edx, eax
sbb eax, eax
inc eax
call fcn.10038d60
add ebp, 0x33
push ebp
call fcn.10038ca0
mov al, byte [ebp]
add esp, 4
xor edi, edi
test al, al
jbe 0x1003a501
mov edi, edi
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x34]
movzx eax, di
mov eax, dword [edx + eax*4]
push esi
call fcn.10039300
movzx ax, byte [ebp]
add esp, 4
inc edi
cmp di, ax
jb 0x1003a4e0
mov ebx, dword [esp + 0x24]
mov al, byte [ebx + 0x30]
test al, al
jne 0x1003a3cb
movzx eax, word [esp + 0x34]
sub eax, 0
je 0x1003a53f
dec eax
je 0x1003a534
push 0xfffffed4
call fcn.10029780
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret
mov eax, esi
call fcn.100390e0
test al, al
je 0x1003a52a
lea ecx, [esp + 0x4c]
push ecx
push 0
call fcn.1005ceb0
add esp, 8
test al, al
je 0x1003a52a
mov edx, dword [esp + 0x4c]
push edx
push 0xffff
call fcn.1005d390
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1003a52a
mov al, byte [esp + 0x13]
test al, al
je 0x1003a699
mov eax, dword [ebx + 0x28]
xor cl, cl
test eax, eax
mov byte [esp + 0x11], cl
je 0x1003a5a3
mov dl, byte [esp + 0x12]
cmp cl, byte [esp + 0x17]
jae 0x1003a59b
test al, 1
je 0x1003a593
inc dl
shr eax, 1
inc cl
test eax, eax
jne 0x1003a587
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], dl
lea eax, [esp + 0x12]
push eax
mov ebx, 1
call fcn.10038ca0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x28]
xor al, al
add esp, 4
test ecx, ecx
mov dword [esp + 0x50], ecx
mov byte [esp + 0x11], al
je 0x1003a638
lea ebx, [ebx]
cmp al, byte [esp + 0x17]
jae 0x1003a638
test cl, 1
je 0x1003a628
movzx edx, al
mov eax, dword [0x10090b38]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x24]
mov eax, dword [eax + edx*4]
push esi
call fcn.100392a0
lea ecx, [esp + 0x15]
push ecx
mov ebx, 1
call fcn.10038ca0
movzx edx, byte [esp + 0x19]
mov eax, dword [ebp + edx*8 + 8]
mov edi, dword [ebp + edx*8 + 0xc]
lea ecx, [ebp + edx*8]
add esp, 8
call fcn.10038d80
mov eax, edi
call fcn.10038d80
mov al, byte [esp + 0x11]
mov ecx, dword [esp + 0x50]
shr ecx, 1
inc al
test ecx, ecx
mov dword [esp + 0x50], ecx
mov byte [esp + 0x11], al
jne 0x1003a5d0
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
push eax
push 0xffff
call fcn.1005d3d0
mov al, byte [0x10090b28]
add esp, 8
test al, al
jne 0x1003a52a
mov al, byte [esp + 0x13]
test al, al
je 0x1003a6ad
mov ecx, dword [0x10090b38]
mov ecx, dword [ecx]
mov di, word [ecx + 2]
xor eax, eax
test di, di
jbe 0x1003a6bf
mov edx, dword [ecx + 4]
movzx edi, di
lea esp, [esp]
mov ecx, dword [edx]
test byte [ecx + 0x30], 1
jne 0x1003a691
mov ecx, dword [ecx + 0x34]
test dword [ebx + 0x28], ecx
je 0x1003a691
inc eax
add edx, 4
dec edi
jne 0x1003a680
jmp 0x1003a6bf
mov eax, dword [ebp]
mov edi, dword [ebp + 4]
call fcn.10038d80
mov eax, edi
call fcn.10038d80
jmp 0x1003a63c
mov edx, dword [0x10090b38]
mov ecx, dword [edx]
xor eax, eax
mov ax, word [ecx + 2]
sub ax, word [ecx + 0x20]
call fcn.10038d60
mov al, byte [0x10090b28]
test al, al
jne 0x1003a52a
mov edx, dword [0x10090b38]
mov eax, dword [edx]
cmp word [eax + 2], 0
mov dword [esp + 0x20], 0
jbe 0x1003a853
lea esp, [esp]
movzx ecx, word [esp + 0x20]
mov eax, dword [eax + 4]
mov ebp, dword [eax + ecx*4]
test byte [ebp + 0x30], 1
jne 0x1003a83e
mov bl, byte [esp + 0x13]
test bl, bl
je 0x1003a71d
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x34]
test dword [eax + 0x28], ecx
je 0x1003a83e
mov ecx, dword [esp + 0x20]
mov al, 4
mov edi, esi
call fcn.10038930
mov eax, dword [ebp]
mov ecx, esi
call fcn.10039060
call fcn.10029e80
cmp eax, 0xffffffab
je 0x1003a52a
test bl, bl
je 0x1003a75c
cmp byte [esp + 0x12], 1
je 0x1003a75c
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0x34]
and eax, dword [ecx + 0x28]
call fcn.10038d80
mov ax, word [ebp + 0x26]
call fcn.10038d60
cmp word [ebp + 0x26], 0
mov dword [esp + 0x50], 0
jbe 0x1003a838
jmp 0x1003a780
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.10029e80
cmp eax, 0xffffffab
je 0x1003a52a
mov ecx, dword [esp + 0x24]
mov al, byte [ecx + 0x2f]
test al, al
je 0x1003a7bd
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + edi]
mov eax, dword [eax + 4]
mov ecx, esi
call fcn.10039060
call fcn.10029e80
cmp eax, 0xffffffab
je 0x1003a52a
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10038d40
and bl, 0x1f
add esp, 4
cmp bl, 0x1b
je 0x1003a808
cmp bl, 3
je 0x1003a808
cmp bl, 7
je 0x1003a808
cmp bl, 8
je 0x1003a808
cmp bl, 9
je 0x1003a808
cmp bl, 0xb
je 0x1003a808
cmp bl, 0x1c
je 0x1003a808
cmp bl, 0x19
je 0x1003a808
cmp bl, 0x1a
jne 0x1003a825
call fcn.10029e80
cmp eax, 0xffffffab
je 0x1003a52a
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + edi]
mov ax, word [eax + 2]
call fcn.10038d60
mov eax, dword [esp + 0x50]
inc eax
cmp ax, word [ebp + 0x26]
mov dword [esp + 0x50], eax
jb 0x1003a780
mov edx, dword [0x10090b38]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx]
inc ecx
cmp cx, word [eax + 2]
mov dword [esp + 0x20], ecx
jb 0x1003a6f0
mov eax, dword [edx]
cmp word [eax + 2], 0
mov dword [esp + 0x20], 0
jbe 0x1003ae5b
jmp 0x1003a870
movzx ecx, word [esp + 0x20]
mov eax, dword [eax + 4]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x24]
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 0x1003ae2d
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1003a8b9
test dword [ebx + 0x34], eax
je 0x1003ae2d
mov ecx, dword [esp + 0x20]
mov al, 3
mov edi, esi
call fcn.10038930
mov al, byte [0x10090b28]
test al, al
jne 0x1003ae44
mov ecx, dword [ebx + 0x18]
mov ebp, dword [ecx]
mov dword [esp + 0x40], ebp
call fcn.10025510
mov edi, eax
mov dword [esp + 0x58], edi
call fcn.10025510
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 0x1003a94f
mov ebp, dword [esp + 0x48]
mov edx, eax
mov edx, dword [edx]
test ebp, edx
je 0x1003a930
or esi, edx
inc ecx
movzx edx, cx
cmp dword [eax + edx*8 + 4], 0
lea edx, [eax + edx*8]
jne 0x1003a928
test esi, esi
je 0x1003a94b
mov eax, dword [ebx + 0x34]
and eax, ebp
cmp esi, eax
je 0x1003a956
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x14], 0
jmp 0x1003a95a
mov ebp, dword [esp + 0x40]
mov al, byte [0x10090b28]
test al, al
jne 0x1003adee
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1002c6a0
add esp, 4
test al, al
jne 0x1003a984
mov al, byte [esp + 0x11]
test al, al
je 0x1003adee
mov edx, dword [esp + 0x24]
mov al, byte [edx + 0x2d]
test al, al
jne 0x1003adee
lea eax, [esp + 0x1c]
push eax
push 1
push ebp
call fcn.1002ab90
push 0
push 1
lea ecx, [esp + 0x30]
push ecx
push ebp
push ebx
call fcn.1002a620
add esp, 0x20
mov esi, eax
test si, si
mov dword [esp + 0x34], esi
je 0x1003adee
mov al, byte [esp + 0x11]
test al, al
push edi
push esi
je 0x1003a9d8
mov edx, dword [esp + 0x28]
push edx
call fcn.1002c570
jmp 0x1003a9e2
mov eax, dword [esp + 0x28]
push eax
call fcn.1002c5c0
mov dword [esp + 0x34], eax
mov al, byte [edi + 1]
add esp, 0xc
cmp al, 9
jne 0x1003aa13
push 0
push 1
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebx
call fcn.1002a620
add esp, 0x14
mov esi, eax
test si, si
jne 0x1003a9c2
mov dword [esp + 0x34], esi
jmp 0x1003adee
test si, si
mov dword [esp + 0x34], esi
je 0x1003adee
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.1002a620
add esp, 0x14
mov ebp, eax
test bp, bp
je 0x1003aaa4
mov al, byte [esp + 0x11]
test al, al
push edi
push ebp
je 0x1003aa68
mov edx, dword [esp + 0x28]
push edx
call fcn.1002c570
jmp 0x1003aa72
mov eax, dword [esp + 0x28]
push eax
call fcn.1002c5c0
mov ebx, eax
mov al, byte [edi + 1]
add esp, 0xc
cmp al, 9
mov dword [esp + 0x38], ebx
jne 0x1003aaa4
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.1002a620
add esp, 0x14
mov ebp, eax
test bp, bp
jne 0x1003aa52
cmp byte [esi], 0xf
jne 0x1003adda
mov cl, byte [esp + 0x11]
test cl, cl
mov al, byte [esi + 1]
mov byte [esp + 0x18], al
je 0x1003aadd
cmp al, 3
jne 0x1003aaf0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push 5
push 0xf
push eax
push ecx
push 0
call fcn.1002c770
add esp, 0x14
jmp 0x1003ad9f
test al, al
je 0x1003ad9a
cmp al, 1
jne 0x1003ab64
mov byte [esp + 0x2c], 1
jmp 0x1003ab05
cmp al, 1
je 0x1003aae9
test al, al
je 0x1003aae9
cmp al, 0xa
jne 0x1003ade1
mov byte [esp + 0x2c], 6
mov al, byte [esp + 0x17]
test al, al
jne 0x1003ab48
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.1005d390
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 + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.1005d3d0
add esp, 8
mov al, byte [esp + 0x14]
test al, al
je 0x1003ab86
mov al, byte [esp + 0x15]
test al, al
je 0x1003ab6f
mov byte [esp + 0x13], 1
mov byte [esp + 0x15], 0
jmp 0x1003ab86
cmp al, 3
jne 0x1003aaf8
mov byte [esp + 0x2c], 2
jmp 0x1003ab05
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push ecx
push esi
push edx
call fcn.10025cc0
add esp, 0xc
mov byte [esp + 0x13], al
test bp, bp
je 0x1003ac78
mov al, byte [esp + 0x11]
test al, al
jne 0x1003ac78
mov al, byte [edi + 1]
test al, al
je 0x1003ac78
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.1005d390
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.1005d3d0
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 0x1003ac78
mov al, byte [esp + 0x14]
test al, al
je 0x1003ac25
mov al, byte [esp + 0x13]
test al, al
jne 0x1003ac20
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push ecx
push edi
push edx
call fcn.10025cc0
add esp, 0xc
test al, al
mov byte [esp + 0x13], al
je 0x1003ac25
mov byte [esp + 0x15], 1
movzx eax, byte [esp + 0x18]
dec eax
je 0x1003ac37
sub eax, 2
je 0x1003ac73
sub eax, 7
jne 0x1003ac78
cmp byte [edi + 1], 3
jne 0x1003ac78
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], 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 0x1003ad93
xor eax, eax
mov al, byte [esi + 1]
test al, al
je 0x1003acaa
push eax
call fcn.10025990
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
push 0xf
push edx
push eax
push 0
call fcn.1002c770
add esp, 0x18
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x78]
mov al, 4
call fcn.10038930
mov al, byte [edi + 0x2d]
test al, al
jne 0x1003adee
movzx eax, byte [esp + 0x2c]
dec eax
cmp eax, 5
ja case.0x1003accf.4
jmp dword [eax*4 + 0x1003af60]
mov al, byte [esp + 0x16]
test al, al
mov eax, dword [esp + 0x78]
je 0x1003aced
inc word [eax + 0x12]
mov byte [esp + 0x16], 0
jmp case.0x1003accf.4
inc word [eax + 0x10]
jmp case.0x1003accf.4
mov byte [esp + 0x16], 1
jmp case.0x1003accf.4
mov eax, dword [esp + 0x78]
inc word [eax + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.1005d390
mov edi, eax
add esp, 8
test edi, edi
je 0x1003adee
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x78]
push eax
call fcn.10038d40
mov ebx, dword [esp + 0x40]
push edi
call fcn.10038ca0
mov al, byte [esp + 0x34]
add esp, 8
cmp al, 2
je 0x1003ad6a
mov ecx, dword [esp + 0x30]
cmp word [ecx + 0x28], 0
jbe 0x1003ad6a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push esi
push 0x10039270
push esi
push 0x10039230
push edx
push eax
call fcn.10020910
add esp, 0x18
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.1005d3d0
mov al, byte [0x10090b28]
add esp, 8
test al, al
jne 0x1003adee
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
jmp 0x1003ad9f
call fcn.10038910
jmp 0x1003ad9f
mov byte [esp + 0x17], 0
test bp, bp
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x28], 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 0x1003aa30
jmp 0x1003adee
push 0xfffffd0d
jmp 0x1003ade6
push 0xfffffed4
call fcn.10029780
add esp, 4
mov esi, dword [esp + 0x78]
lea eax, [esp + 0x18]
push eax
mov ebx, 1
mov byte [esp + 0x1c], 0
call fcn.10038ca0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10025540
mov edx, dword [esp + 0x60]
push edx
call fcn.10025540
add esp, 0xc
call fcn.10029e80
cmp eax, 0xffffffab
je 0x1003ae5b
mov edx, dword [0x10090b38]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx]
inc ecx
cmp cx, word [eax + 2]
mov dword [esp + 0x20], ecx
jb 0x1003a870
jmp 0x1003ae5b
lea eax, [esp + 0x78]
push eax
mov ebx, 1
mov byte [esp + 0x7c], 0
call fcn.10038ca0
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 0x1003aec4
mov al, byte [edi + 0x21]
test al, al
jne 0x1003aec4
mov al, byte [esi + 9]
test al, al
je 0x1003ae81
mov dword [esi + 0x78], ebx
mov al, byte [esi + 8]
test al, al
jne 0x1003ae95
lea edx, [esp + 0x5c]
push edx
call fcn.1002d940
add esp, 4
mov eax, dword [edi + 0x18]
push edi
call dword [eax + 0x20]
mov al, byte [esi + 8]
test al, al
jne 0x1003aeb0
lea ecx, [esp + 0x5c]
push ecx
call fcn.1002d990
add esp, 4
mov al, byte [edi + 0x21]
test al, al
je 0x1003aec4
push 0xfffffed5
call fcn.10029780
add esp, 4
mov al, byte [0x10090b28]
test al, al
je 0x1003aee7
push 0x10038e40
call fcn.10025f30
mov eax, dword [0x10090b38]
mov cl, byte [eax + 0x48]
add esp, 4
and cl, 0xfe
jmp 0x1003aef2
mov eax, dword [0x10090b38]
mov cl, byte [eax + 0x48]
or cl, 1
mov byte [eax + 0x48], cl
call fcn.10026070
push esi
call fcn.10039eb0
push 2
call fcn.1005e3b0
add esp, 8
call fcn.10029e80
cmp eax, 0xffffffab
je 0x1003af19
call fcn.10038d80
call fcn.10029e80
cmp eax, 0xffffffab
je 0x1003af3d
mov eax, dword [esi + 4]
mov edx, dword [esi]
push eax
call dword [edx + 0x28]
add esp, 4
test al, al
jne 0x1003af3d
push 0xffffffffffffffab
call fcn.10029780
add esp, 4
mov ecx, dword [esp + 0x24]
mov al, byte [ecx + 0x2e]
test al, al
jne 0x1003af4e
mov dword [0x10090b04], ebx
mov al, byte [0x10090b28]
pop edi
pop esi
test al, al
pop ebp
sete al
pop ebx
add esp, 0x64
ret