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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10068020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x34]
push ebx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x38]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x58], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x35], al
mov dword [ebp - 0x6c], eax
mov eax, dword [esi]
push esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], eax
call fcn.1003eb32
mov ebx, eax
movsx eax, word [edi + 0x2a]
push 0x14
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
test byte [edi + 0x24], 0x20
jne 0x10031dfc
and dword [ebp - 0x44], 0
mov dword [ebp - 0x68], 1
jmp 0x10031e0d
push edi
call fcn.1003eb32
mov dword [ebp - 0x44], eax
pop ecx
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x68], eax
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x30], ecx
jle 0x10031f6e
xor edx, edx
mov dword [ebp - 0x20], edx
movsx eax, word [edi + 0x28]
cmp ecx, eax
je 0x10031f5b
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x10031e3d
cmp dword [eax + ecx*4], 0
jl 0x10031f5b
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], eax
movzx edi, byte [edx + eax + 0xc]
test edi, edi
je 0x10031f58
mov cl, byte [ebp + 0x28]
cmp cl, 0xb
je 0x10031e5d
movzx edi, cl
jmp 0x10031e66
push 2
cmp edi, 0xb
pop ecx
cmove edi, ecx
mov ecx, dword [ebp - 0x2c]
cmp edi, 5
jne 0x10031e79
cmp dword [edx + eax + 4], 0
push 2
pop eax
cmove edi, eax
mov eax, edi
sub eax, 1
je 0x10031f09
sub eax, 1
je 0x10031ef3
sub eax, 1
je 0x10031f09
push 0
sub eax, 1
je 0x10031edc
mov edi, dword [ebp + 0x1c]
inc ecx
push 0
add edi, ecx
push edi
push 0x33
push ebx
call fcn.1003eb32
mov ecx, dword [ebp - 0x20]
mov esi, eax
push edi
mov edi, dword [ebp - 0x24]
mov eax, dword [edi + 4]
push dword [eax + ecx + 4]
push dword [ebp - 0x54]
call fcn.1003eb32
push esi
push ebx
call fcn.1003eb32
mov ecx, dword [ebx + 0x88]
add esp, 0x28
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2c]
jmp 0x10031f5b
push dword [ebp + 0x2c]
mov eax, dword [ebp + 0x1c]
inc ecx
add eax, ecx
push eax
push 0x32
push ebx
call fcn.1003eb32
add esp, 0x14
jmp 0x10031f52
cmp dword [esi + 0x78], 0
mov eax, esi
cmovne eax, dword [esi + 0x78]
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
jmp 0x10031f0f
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push dword [edx + ecx]
push dword [eax]
push str._s._s
push dword [ebp - 0x5c]
call fcn.1003eb32
mov ecx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x2c]
inc ecx
add eax, ecx
push eax
push edi
push 0x513
push 0x41
push ebx
call fcn.1003eb32
push 0xfffffffffffffff9
push esi
push ebx
call fcn.1003eb32
push 1
push ebx
call fcn.1003eb32
mov esi, dword [ebp - 0x54]
add esp, 0x38
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
inc ecx
add edx, 0x10
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], edx
cmp ecx, dword [ebp - 0x30]
jl 0x10031e20
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x1003209a
mov eax, dword [ebp - 0x5c]
test dword [eax + 0x1c], 0x200
jne 0x1003209a
mov eax, dword [ebp + 0x1c]
cmp byte [ebp + 0x28], 0xb
not eax
mov dword [esi + 0x38], eax
movzx eax, byte [ebp + 0x28]
push 2
pop ecx
cmovne ecx, eax
and dword [ebp - 0x34], 0
cmp dword [edx], 0
mov dword [ebp - 0x20], ecx
jle 0x10032096
lea eax, [edx + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x50], 0
mov eax, dword [eax - 4]
mov dword [ebp - 0x30], eax
je 0x10032011
push 0x1c
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x50]
xor al, al
mov dword [ebp - 0x78], ecx
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x8c], 0x10011bf0
test ecx, ecx
je 0x10032005
push ecx
lea eax, [ebp - 0x90]
push eax
call fcn.1003eb32
mov al, byte [ebp - 0x7c]
pop ecx
pop ecx
cmp byte [ebp + 0x24], 0
jne 0x1003200d
and al, 0xfd
test al, al
je 0x1003207b
push ebx
call fcn.1003eb32
push 0x10
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
push esi
call fcn.1003eb32
mov eax, dword [ebp - 0x20]
add esp, 0x14
cmp eax, 4
jne 0x10032045
push 0
push dword [ebp + 0x2c]
push 0
push 0xd
push ebx
call fcn.1003eb32
add esp, 0x14
jmp 0x10032070
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x10032050
mov ecx, dword [edi]
push 2
pop edx
push 3
push 0
cmp eax, 5
push ecx
cmove eax, edx
push eax
push 0x113
push esi
mov dword [ebp - 0x20], eax
call fcn.1003eb32
add esp, 0x18
push dword [ebp - 0x40]
push ebx
call fcn.1003eb32
pop ecx
pop ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, dword [ebp - 0x28]
add eax, 0x18
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], eax
cmp edx, dword [ecx]
jl 0x10031fb8
and dword [esi + 0x38], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x100320d1
cmp dword [eax], 0
jne 0x100320b0
and dword [ebp - 0x58], 0
mov byte [ebp + 0x28], 4
jmp 0x100320d1
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x100320d1
push ebx
call fcn.1003eb32
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.1003eb32
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp byte [ebp + 0x24], 0
je 0x100322c2
cmp dword [ebp - 0x44], 0
jne 0x100322c2
push ebx
call fcn.1003eb32
mov dl, byte [ebp + 0x28]
movzx edi, byte [edi + 0x30]
mov dword [ebp - 0x20], eax
pop ecx
cmp dl, 0xb
je 0x10032100
movzx edi, dl
jmp 0x10032109
push 2
cmp edi, 0xb
pop ecx
cmove edi, ecx
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x10032124
cmp dword [ecx + 0x10], 0
jne 0x10032124
cmp dword [ecx + 8], 0
jne 0x10032121
push 4
pop edi
jmp 0x10032153
push 6
pop edi
cmp edi, 5
jb 0x10032153
test ecx, ecx
jne 0x10032134
movzx eax, dl
cmp edi, eax
je 0x10032150
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp dword [eax + 8], ecx
je 0x10032150
push ecx
push ecx
push ecx
push 0xd
push ebx
call fcn.1003eb32
add esp, 0x14
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x10032177
push ecx
push eax
push dword [ebp + 0x1c]
push 0x35
pop eax
push eax
push ebx
call fcn.1003eb32
push 0x90
push ebx
call fcn.1003eb32
add esp, 0x1c
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
push 0x20
push ebx
call fcn.1003eb32
add esp, 0x14
test edi, edi
je 0x10032275
cmp edi, 3
jbe 0x1003227a
cmp edi, 4
je 0x100321c3
cmp edi, 5
je 0x100321da
cmp edi, 6
jne 0x10032275
push dword [ebp + 0x14]
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x58]
push esi
call fcn.1003eb32
add esp, 0x14
push 0
push dword [ebp + 0x2c]
push 0
push 0xd
push ebx
call fcn.1003eb32
add esp, 0x14
jmp 0x10032287
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x60], ecx
test dword [eax + 0x1c], 0x2000
je 0x10032205
push ecx
push ecx
push 0x6e
push edi
push esi
call fcn.1003eb32
add esp, 0x14
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x1003223e
xor ecx, ecx
push ecx
push ecx
push edi
push esi
call fcn.1003eb32
add esp, 0x10
test eax, eax
jne 0x1003223e
cmp dword [edi + 8], eax
je 0x1003226c
cmp dword [esi + 0x78], 0
mov eax, esi
push 0xffffffffffffffff
cmovne eax, dword [esi + 0x78]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov byte [eax + 0x14], 1
push edi
push esi
call fcn.1003eb32
add esp, 0x18
jmp 0x1003226c
cmp dword [esi + 0x78], 0
mov eax, esi
push 0xffffffffffffffff
cmovne eax, dword [esi + 0x78]
push 1
push 5
push 0
push 1
push dword [ebp + 0x1c]
mov byte [eax + 0x14], 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x60]
push edi
push esi
call fcn.1003eb32
add esp, 0x2c
mov dword [ebp - 0x60], 1
jmp 0x1003228a
push 2
pop eax
mov edi, eax
push dword [ebp - 0x24]
push edi
push esi
call fcn.1003eb32
add esp, 0xc
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x20]
push ebx
call fcn.1003eb32
cmp dword [ebp - 0x18], 0
pop ecx
pop ecx
je 0x100322c2
xor eax, eax
push eax
push eax
push eax
push 0xd
push ebx
call fcn.1003eb32
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
dec eax
push eax
push ebx
call fcn.1003eb32
mov ecx, dword [ebx + 0x88]
add esp, 0x1c
mov dword [eax + 8], ecx
mov eax, dword [edi + 8]
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10032805
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
cmp dword [edx + ecx*4], 0
je 0x100327f3
cmp dword [ebp - 0x64], eax
jne 0x1003230d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
xor eax, eax
push eax
push eax
push eax
push 0xd
push ebx
call fcn.1003eb32
push dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
push ebx
call fcn.1003eb32
add esp, 0x1c
jmp 0x10032317
push ebx
call fcn.1003eb32
pop ecx
mov dword [ebp - 0x48], eax
cmp byte [ebp - 0x35], 0
jne 0x10032330
mov ecx, dword [ebp + 0x1c]
inc ecx
push ecx
push edi
push ebx
call fcn.1003eb32
add esp, 0xc
mov byte [ebp - 0x35], 1
mov ecx, dword [ebp + 0x18]
xor edx, edx
mov eax, dword [ebp - 0x3c]
add ecx, eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x24], edx
je 0x1003237b
mov ecx, dword [ebp - 0x4c]
push edx
push dword [ecx + eax*4]
push edx
push 0x46
push ebx
call fcn.1003eb32
mov eax, dword [ebp + 0x1c]
not eax
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x1c]
push 0x10
push dword [ebp - 0x48]
push dword [eax + 0x24]
push esi
call fcn.1003eb32
mov ecx, dword [ebp - 0x1c]
add esp, 0x24
and dword [esi + 0x38], 0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
and dword [ebp - 0x30], 0
mov edx, dword [edx + eax*4]
lea eax, [edx + 1]
mov dword [ebp - 0x20], eax
movzx eax, word [ecx + 0x34]
mov edi, eax
mov dword [ebp - 0x40], edi
xor edi, edi
cmp di, ax
mov edi, dword [ebp - 0x24]
jae 0x10032433
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0x30]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x100323df
mov eax, dword [ebp + 0x1c]
push dword [ebp - 0x28]
not eax
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [ebp - 0x34]
push dword [eax + ecx + 4]
push esi
call fcn.1003eb32
add esp, 0xc
and dword [esi + 0x38], 0
jmp 0x10032410
cmp edx, 0xffffffff
je 0x100323f4
movsx eax, word [edi + 0x28]
cmp edx, eax
je 0x100323f4
mov eax, dword [ebp + 0x1c]
inc eax
add eax, edx
jmp 0x100323f7
mov eax, dword [ebp + 0x1c]
push 0
push dword [ebp - 0x28]
sar edx, 0x1f
and edx, 1
push eax
add edx, 0x4c
push edx
push ebx
call fcn.1003eb32
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x30]
add dword [ebp - 0x34], 0x18
inc dword [ebp - 0x28]
movzx edx, word [ecx + 0x34]
cmp dword [ebp - 0x30], edx
jl 0x100323ac
mov ecx, dword [ebp - 0x3c]
mov eax, edx
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + ecx*4]
jmp 0x10032436
mov eax, dword [ebp - 0x40]
push edx
movzx eax, ax
push eax
push dword [ebp - 0x20]
push 0x65
push ebx
call fcn.1003eb32
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp dword [ebp + 0x20], 0
je 0x1003246d
cmp dword [ebp - 0x44], eax
jne 0x1003246d
cmp byte [ebp + 0x24], 0
jne 0x1003246d
push dword [ebp - 0x48]
push ebx
call fcn.1003eb32
pop ecx
pop ecx
jmp 0x100327ea
movzx ecx, byte [eax + 0x36]
test ecx, ecx
je 0x1003245d
mov dl, byte [ebp + 0x28]
cmp dl, 0xb
je 0x10032482
movzx ecx, dl
jmp 0x1003248b
push 2
cmp ecx, 0xb
pop edx
cmove ecx, edx
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x64], eax
jne 0x100324aa
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 8], 0
jne 0x100324a4
push 4
pop ecx
mov dword [ebp - 0x2c], ecx
jmp 0x100324c1
push 6
pop ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, 5
jne 0x100324c1
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.1003eb32
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x3c], 0
jne 0x10032529
xor edx, edx
cmp dword [eax + 0x14], edx
jne 0x10032529
cmp dword [ebp - 0x44], eax
jne 0x10032529
cmp ecx, 5
jne 0x10032529
mov eax, dword [ebp - 0x5c]
test dword [eax + 0x1c], 0x2000
je 0x100324fb
push edx
push edx
push 0x6e
push edi
push esi
call fcn.1003eb32
add esp, 0x14
test eax, eax
jne 0x10032529
mov eax, dword [ebp - 0x5c]
xor edx, edx
test dword [eax + 0x1c], 0x4000
je 0x1003245d
cmp dword [edi + 0x10], edx
jne 0x10032529
mov eax, dword [edi + 0x48]
push edx
push dword [edi]
add eax, 0x38
push eax
call fcn.1003eb32
add esp, 0xc
cmp dword [eax + 8], 0
je 0x1003245d
mov eax, dword [ebp - 0x1c]
inc dword [esi + 0x3c]
movzx eax, word [eax + 0x32]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x48]
push dword [ebp - 0x50]
push 0x1c
push ebx
call fcn.1003eb32
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov edx, dword [ebp - 0x44]
cmp eax, edx
jne 0x10032557
mov ecx, dword [ebp - 0x20]
jmp 0x1003256a
push dword [ebp - 0x68]
push esi
call fcn.1003eb32
mov edx, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + 0x20], 0
mov dword [ebp - 0x34], ecx
jne 0x1003257d
cmp dword [ebp - 0x2c], 5
jne 0x100326d8
test byte [edi + 0x24], 0x20
jne 0x100325c6
push 0
push ecx
push dword [ebp - 0x50]
push 0x84
push ebx
call fcn.1003eb32
mov eax, dword [ebp + 0x20]
add esp, 0x14
test eax, eax
je 0x100326d8
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x34]
push 0x35
pop eax
push eax
push ebx
call fcn.1003eb32
push 0x90
push ebx
call fcn.1003eb32
add esp, 0x1c
jmp 0x100326d8
cmp eax, edx
je 0x10032617
and dword [ebp - 0x40], 0
xor ecx, ecx
cmp cx, word [edx + 0x32]
jae 0x10032617
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x40]
mov eax, dword [edx + 4]
movzx eax, word [eax + esi*2]
push eax
push edi
call fcn.1003eb32
movsx ecx, ax
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
push ecx
push dword [ebp - 0x50]
push 0x62
push ebx
call fcn.1003eb32
mov edx, dword [ebp - 0x44]
add esp, 0x1c
inc esi
movzx eax, word [edx + 0x32]
cmp esi, eax
jl 0x100325dc
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + 0x20], 0
je 0x100326d8
movzx ecx, word [edx + 0x32]
mov edx, dword [ebx + 0x88]
mov eax, dword [eax + 0x38]
add edx, ecx
and al, 3
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x34]
cmp al, 2
mov dword [ebp - 0x30], 0x34
cmove edx, dword [ebp - 0x20]
mov dword [ebp - 0x70], edx
xor edx, edx
mov dword [ebp - 0x28], edx
test ecx, ecx
je 0x100326d8
mov edi, dword [ebp - 0x44]
mov eax, dword [edi + 0x20]
push dword [eax + edx*4]
push esi
call fcn.1003eb32
mov ecx, dword [edi + 4]
mov edx, eax
mov eax, dword [ebp - 0x28]
push 0x35
movsx esi, word [ecx + eax*2]
movzx ecx, word [edi + 0x32]
mov edi, dword [ebp - 0x30]
dec ecx
cmp eax, ecx
mov dword [ebp - 0x30], edi
mov eax, edi
pop edi
cmove eax, edi
cmp dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x48]
cmovne eax, dword [ebp - 0x40]
mov ecx, eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x70]
push 0xfffffffffffffffe
push edx
push eax
mov eax, dword [ebp + 0x20]
push ecx
inc eax
mov dword [ebp - 0x40], ecx
add eax, esi
push eax
push dword [ebp - 0x30]
push ebx
call fcn.1003eb32
push 0x90
push ebx
call fcn.1003eb32
mov eax, dword [ebp - 0x44]
add esp, 0x2c
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x54]
inc edx
mov dword [ebp - 0x28], edx
movzx eax, word [eax + 0x32]
cmp edx, eax
jl 0x10032655
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1003272b
cmp eax, 3
jbe 0x10032719
cmp eax, 4
je 0x10032702
cmp eax, 6
jne 0x1003272b
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x58]
push esi
call fcn.1003eb32
add esp, 0x14
push 0
push dword [ebp + 0x2c]
push 0
push 0xd
push ebx
call fcn.1003eb32
add esp, 0x14
jmp 0x100327a5
mov eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
push esi
call fcn.1003eb32
add esp, 0xc
jmp 0x100327a5
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
mov dword [ebp - 0x40], ecx
test dword [eax + 0x1c], 0x2000
je 0x10032753
push ecx
push ecx
push 0x6e
push edi
push esi
call fcn.1003eb32
add esp, 0x14
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x10032763
xor ecx, ecx
push ecx
push ecx
push edi
push esi
call fcn.1003eb32
add esp, 0x10
test eax, eax
je 0x10032771
cmp dword [esi + 0x78], 0
mov eax, esi
cmovne eax, dword [esi + 0x78]
mov byte [eax + 0x14], 1
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x44]
sete al
movzx eax, al
push eax
push 5
push 0
push dword [ebp - 0x68]
push dword [ebp - 0x34]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x40]
push edi
push esi
call fcn.1003eb32
add esp, 0x2c
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x1c]
jne 0x100327c3
push dword [ebp - 0x6c]
push ebx
call fcn.1003eb32
pop ecx
pop ecx
mov ecx, dword [ebx + 0x88]
mov dword [eax + 8], ecx
jmp 0x100327ce
push dword [ebp - 0x48]
push ebx
call fcn.1003eb32
pop ecx
pop ecx
push esi
call fcn.1003eb32
mov eax, dword [ebp - 0x34]
pop ecx
cmp eax, dword [ebp - 0x20]
je 0x100327ea
push dword [ebp - 0x68]
push eax
push esi
call fcn.1003eb32
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], ecx
test eax, eax
jne 0x100322da
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.1003eb32
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005a1b0
leave
ret