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

Disassembly:
mov eax, 0x1080
call fcn.100720f0
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x107c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x108c]
push esi
push edi
mov edi, ebp
call fcn.10035840
xor ebx, ebx
mov dword [ebp + 0x3e08], eax
mov dword [ebp + 0x3e0c], edx
cmp byte [ebp + 0x3e18], bl
je 0x1003970a
call fcn.1003a470
jmp 0x1003a416
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
cmp byte [ebp + 0x3e20], bl
je 0x10039885
mov eax, dword [ebp + 0x3e24]
xor ecx, ecx
add eax, 0x14
cmp edx, ecx
jl 0x10039885
jg 0x10039755
mov ecx, dword [ebp + 0x3e08]
cmp ecx, eax
jb 0x10039885
push 8
lea edi, [ebp + 0xe60]
push edi
mov eax, ebp
mov byte [esp + 0x3a], 1
call fcn.10035600
cmp eax, 8
jne 0x1003987e
cmp dword [ebp + 0x4a48], ebx
jne 0x10039787
mov esi, ebp
call fcn.10035580
call fcn.10040d40
mov eax, dword [ebp + 0x4a48]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push eax
call edx
test eax, eax
jne 0x100397d0
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x100397d0
mov ecx, dword [ebp + 0x1390]
mov edx, dword [esp + 0x34]
add ecx, 0x18
push edx
mov eax, 0x80
call fcn.10040960
add esp, 4
test al, al
jne 0x100397dc
mov esi, ebp
call fcn.10035580
call fcn.10040d40
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp + 0x16d4], 0x24
mov eax, dword [ebp + 0x1390]
setae cl
movzx edx, cl
push edx
push ebx
push edi
add eax, 0x18
push eax
lea esi, [ebp + 0xc20]
push esi
call fcn.10042bc0
mov dword [esp + 0x2c], esi
push 7
lea eax, [esp + 0x18]
call fcn.10042110
cmp dword [esp + 0x24], ebx
jne 0x1003988b
mov eax, ebp
call fcn.100358d0
mov ecx, dword [ebp + 0x3e0c]
cmp ecx, edx
jg 0x10039855
jl 0x1003983f
mov ecx, dword [ebp + 0x3e08]
cmp ecx, eax
ja 0x10039855
mov ecx, dword [ebp + 0x3e14]
cmp ecx, edx
jl 0x1003986d
jg 0x10039855
mov edx, dword [ebp + 0x3e10]
cmp edx, eax
jbe 0x1003986d
cmp dword [0x100e1ef0], ebx
jne 0x10039867
mov dword [0x100e1ef0], 1
inc dword [0x100e1ef4]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1003987e
push eax
call fcn.100631a6
add esp, 4
xor eax, eax
jmp 0x1003a416
mov byte [esp + 0x32], bl
jmp 0x10039811
lea esi, [ebp + 0x16b4]
mov edx, esi
lea eax, [esp + 0x14]
call fcn.100421e0
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x24]
jge 0x100398b4
mov eax, dword [esp + 0x14]
mov al, byte [ecx + eax]
inc ecx
mov dword [esp + 0x28], ecx
jmp 0x100398b6
xor al, al
movzx ecx, al
lea ebx, [ebp + 0x16bc]
mov edx, ebx
lea eax, [esp + 0x14]
mov dword [ebp + 0x16b8], ecx
call fcn.100421e0
lea edi, [ebp + 0x16be]
mov edx, edi
lea eax, [esp + 0x14]
call fcn.100421e0
movzx eax, word [edi]
cmp ax, 7
jae 0x1003990c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x3e28], 1
inc dword [0x100e1ef4]
mov dword [0x100e1ef0], 3
test eax, eax
jmp 0x10039873
mov ecx, dword [ebp + 0x16b8]
cmp ecx, 0x75
jne 0x1003991b
push 6
jmp 0x10039930
cmp ecx, 0x73
jne 0x10039929
test byte [ebx], 2
je 0x10039929
push 6
jmp 0x10039930
movzx edx, ax
sub edx, 7
push edx
lea eax, [esp + 0x18]
call fcn.10042110
movzx eax, word [edi]
cdq
add eax, dword [ebp + 0x3e08]
adc edx, dword [ebp + 0x3e0c]
mov dword [ebp + 0x3e10], eax
mov eax, dword [ebp + 0x16b8]
lea ecx, [eax - 0x73]
mov dword [ebp + 0x3e14], edx
cmp ecx, 8
ja case.default.0x10039967
jmp dword [ecx*4 + 0x1003a434]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [ebp + 0x16c0], eax
mov dword [ebp + 0x16c4], ecx
mov dword [ebp + 0x16c8], edx
lea edx, [ebp + 0x16cc]
lea eax, [esp + 0x14]
call fcn.100421e0
lea edx, [ebp + 0x16d0]
lea ecx, [esp + 0x14]
call fcn.10042220
mov eax, 0x200
test word [ebp + 0x16c8], ax
je case.default.0x1003a087
lea edx, [ebp + 0x16d4]
mov eax, ecx
call fcn.100421c0
jmp case.default.0x1003a087
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [ebp + 0x23f0], ecx
mov dword [ebp + 0x23f4], edx
mov dword [ebp + 0x23f8], eax
test al, 2
je 0x100399f7
lea edx, [ebp + 0x23fc]
lea ecx, [esp + 0x14]
call fcn.10042220
test byte [ebp + 0x23f8], 8
je case.default.0x1003a087
lea edx, [ebp + 0x2400]
lea eax, [esp + 0x14]
call fcn.100421e0
jmp case.default.0x1003a087
lea ebx, [ebp + 0x16d8]
cmp eax, 0x74
je 0x10039a29
lea ebx, [ebp + 0x2418]
mov ecx, dword [ebp + 0x16b4]
mov dword [ebx], ecx
mov edx, dword [ebp + 0x16b8]
mov dword [ebx + 4], edx
mov eax, dword [ebp + 0x16bc]
lea edx, [ebx + 0xc]
lea ecx, [esp + 0x14]
mov dword [ebx + 8], eax
call fcn.10042220
lea edx, [ebx + 0x10]
call fcn.10042220
lea edx, [ebx + 0x14]
mov eax, ecx
call fcn.100421c0
lea edx, [ebx + 0x18]
mov ecx, eax
call fcn.10042220
lea edx, [ebx + 0x1c]
call fcn.10042220
lea edx, [ebx + 0x20]
mov eax, ecx
call fcn.100421c0
lea edx, [ebx + 0x21]
call fcn.100421c0
lea edx, [ebx + 0x22]
call fcn.100421e0
lea edx, [ebx + 0x24]
lea ecx, [esp + 0x14]
call fcn.10042220
mov ecx, 0x100
lea edi, [ebx + 0x28]
test word [ebx + 8], cx
je 0x10039abe
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.10042220
lea esi, [ebx + 0x2c]
mov edx, esi
call fcn.10042220
jmp 0x10039ae0
cmp dword [ebx + 0x10], 0xffffffff
lea esi, [ebx + 0x2c]
mov dword [esi], 0
mov dword [edi], 0
jne 0x10039ae0
mov dword [ebx + 0x10], 0
mov dword [esi], connect
mov edx, dword [edi]
push 1
push 0
push 0
push edx
call fcn.10070c30
mov ecx, dword [ebx + 0xc]
xor edi, edi
add eax, ecx
push 1
adc edx, edi
push edi
mov dword [ebx + 0xd0c], edx
mov edx, dword [esi]
push edi
push edx
mov dword [ebx + 0xd08], eax
call fcn.10070c30
mov ecx, dword [ebx + 0x10]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebx + 0xd10], eax
movzx eax, word [ebx + 0x22]
mov dword [ebx + 0xd14], edx
mov edx, 0xfff
movzx edi, ax
cmp ax, dx
jb 0x10039b37
mov edi, edx
lea ecx, [esp + 0x88]
lea esi, [esp + 0x14]
call fcn.10042260
push 0x3ff
lea eax, [esp + 0x8c]
lea esi, [ebx + 0x30]
push eax
push esi
mov byte [esp + edi + 0x94], 0
mov dword [esp + 0x4c], esi
call fcn.100645f0
mov byte [esi + 0x3ff], 0
mov eax, dword [ebx + 4]
add esp, 0xc
cmp eax, 0x7a
jne 0x10039c04
movzx edi, word [ebx + 0xa]
movzx ecx, word [ebx + 0x22]
sub edi, ecx
mov edx, 0x400
sub edi, 0x20
test word [ebx + 8], dx
je 0x10039b9a
sub edi, 8
test edi, edi
jle 0x10039cd6
lea esi, [ebx + 0xc30]
mov ecx, edi
call fcn.10035270
mov ecx, dword [ebx + 0xc30]
lea esi, [esp + 0x14]
call fcn.10042260
mov ecx, 0x100d4470
mov eax, ebx
call fcn.10034620
test al, al
je 0x10039cd6
mov eax, dword [ebx + 0xc30]
movzx ecx, byte [eax + 0xb]
movzx edx, byte [eax + 0xa]
add eax, 8
shl ecx, 8
add ecx, edx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
shl ecx, 8
add ecx, edx
shl ecx, 8
add ecx, eax
mov dword [ebp + 0x1668], ecx
jmp 0x10039cd6
cmp eax, 0x74
jne 0x10039cd6
mov ecx, 0x200
test word [ebx + 8], cx
je 0x10039cb3
xor esi, esi
lea eax, [esp + 0x88]
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039c40
movzx ecx, word [ebx + 0x22]
sub eax, edx
lea edi, [ebx + 0x430]
cmp eax, ecx
jne 0x10039c85
mov eax, edi
lea edx, [esp + 0x88]
call fcn.10040a80
mov esi, dword [esp + 0x40]
push edi
mov eax, 0x3ff
mov ecx, esi
call fcn.10040960
add esp, 4
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
xor esi, esi
jmp 0x10039ca3
inc eax
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x8c]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.10043320
cmp word [edi], si
jne 0x10039cbe
mov edx, 0xfdff
and word [ebx + 8], dx
jmp 0x10039cbe
lea edi, [ebx + 0x430]
xor eax, eax
mov word [edi], ax
mov esi, dword [esp + 0x40]
push ebp
call fcn.1003a8b0
mov esi, ebp
call fcn.1003a910
mov edx, ebp
call fcn.1003a940
mov ecx, 0x400
test word [ebx + 8], cx
je 0x10039cf5
lea ecx, [ebx + 0xc3c]
mov edi, 8
lea esi, [esp + 0x14]
call fcn.10042260
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0xc48]
call fcn.10040dd0
xor esi, esi
mov edx, 0x1000
mov dword [ebx + 0xc78], esi
mov dword [ebx + 0xca8], esi
mov dword [ebx + 0xcd8], esi
test word [ebx + 8], dx
je 0x10039e30
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
call fcn.100421e0
lea eax, [ebp + 0x2320]
lea edx, [ebp + 0x2380]
mov dword [esp + 0x48], eax
lea ecx, [ebp + 0x2350]
lea eax, [ebp + 0x23b0]
mov dword [esp + 0x44], 0xc
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], esi
jmp 0x10039d70
movzx eax, word [esp + 0x34]
mov edi, dword [esp + esi*4 + 0x48]
mov cl, dl
shr eax, cl
mov dword [esp + 0x38], eax
test al, 8
je 0x10039e1b
test esi, esi
je 0x10039da9
lea edx, [esp + 0x60]
lea ecx, [esp + 0x14]
call fcn.10042220
mov eax, dword [esp + 0x60]
mov ecx, edi
call fcn.10040dd0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + edx*4 + 0x48]
mov ecx, 9
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
test al, 4
je 0x10039dc4
inc dword [esp + 0x78]
and eax, 3
mov dword [esp + 0x7c], 0
jle 0x10039e02
mov esi, 3
sub esi, eax
add esi, esi
add esi, esi
add esi, esi
mov edi, eax
lea edx, [esp + 0x33]
lea eax, [esp + 0x14]
call fcn.100421c0
movzx eax, byte [esp + 0x33]
mov ecx, esi
shl eax, cl
add esi, 8
or dword [esp + 0x7c], eax
sub edi, 1
jne 0x10039de0
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + edx*4 + 0x48]
mov ecx, 9
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov esi, edx
mov edx, dword [esp + 0x44]
sub edx, 4
inc esi
cmp edx, 0xfffffffc
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], edx
jg 0x10039d70
mov eax, dword [ebx + 0xd08]
add dword [ebp + 0x3e10], eax
mov ecx, dword [ebx + 0xd0c]
adc dword [ebp + 0x3e14], ecx
mov dl, byte [ebx + 8]
shr dl, 3
and dl, 1
mov byte [esp + 0x38], dl
mov eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0x18]
call fcn.10042290
not eax
mov word [ebp + 0x3e2a], ax
cmp word [ebx], ax
je case.default.0x1003a087
cmp dword [ebx + 4], 0x7a
jne 0x10039e8b
mov ecx, dword [esp + 0x40]
push str._____
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [ebp + 0x3e28], 1
cmp dword [0x100e1ef0], 0
jne 0x10039ea5
mov dword [0x100e1ef0], 1
inc dword [0x100e1ef4]
jmp case.default.0x1003a087
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp + 0x3130], edx
mov dword [ebp + 0x3134], eax
lea edx, [ebp + 0x313c]
lea eax, [esp + 0x14]
mov dword [ebp + 0x3138], ecx
call fcn.100421e0
lea edx, [ebp + 0x313e]
lea eax, [esp + 0x14]
call fcn.100421c0
lea edx, [ebp + 0x313f]
call fcn.100421c0
lea edx, [ebp + 0x3140]
call fcn.100421e0
jmp case.default.0x1003a087
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp + 0x3178], edx
mov dword [ebp + 0x317c], eax
mov dword [ebp + 0x3180], ecx
lea edx, [ebp + 0x3184]
lea ecx, [esp + 0x14]
call fcn.10042220
lea edx, [ebp + 0x3188]
mov eax, ecx
call fcn.100421e0
lea edx, [ebp + 0x318a]
lea eax, [esp + 0x14]
call fcn.100421e0
jmp case.default.0x1003a087
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp + 0x3164], edx
mov dword [ebp + 0x3168], eax
lea edx, [ebp + 0x3170]
lea eax, [esp + 0x14]
mov dword [ebp + 0x316c], ecx
call fcn.100421c0
lea edx, [ebp + 0x3171]
call fcn.100421c0
lea edx, [ebp + 0x3172]
call fcn.100421c0
lea edx, [ebp + 0x3174]
mov ecx, eax
call fcn.10042220
jmp case.default.0x1003a087
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp + 0x3144], edx
mov dword [ebp + 0x3148], eax
mov dword [ebp + 0x314c], ecx
lea ebx, [ebp + 0x3150]
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.10042220
lea edx, [ebp + 0x3154]
mov eax, ecx
call fcn.100421c0
lea edx, [ebp + 0x3156]
call fcn.100421e0
lea edx, [ebp + 0x3158]
lea ecx, [esp + 0x14]
call fcn.10042220
lea ecx, [ebp + 0x315c]
mov edi, 8
lea esi, [esp + 0x14]
call fcn.10042260
movzx eax, word [ebp + 0x3156]
mov edx, dword [ebx]
add dword [ebp + 0x3e10], edx
mov dword [ebp + 0x1668], eax
jmp 0x1003a2e4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [ebp + 0x2404], ecx
mov dword [ebp + 0x2408], edx
lea edx, [ebp + 0x2410]
lea ecx, [esp + 0x14]
mov dword [ebp + 0x240c], eax
call fcn.10042220
mov ecx, dword [edx]
add dword [ebp + 0x3e10], ecx
lea esi, [ebp + 0x2414]
mov edx, esi
adc dword [ebp + 0x3e14], 0
lea eax, [esp + 0x14]
call fcn.100421e0
lea edx, [ebp + 0x2416]
lea eax, [esp + 0x14]
call fcn.100421c0
movzx eax, word [esi]
add eax, 0xffffff00
cmp eax, 5
ja case.default.0x1003a087
jmp dword [eax*4 + 0x1003a458]
mov edx, dword [ebp + 0x2404]
mov eax, dword [ebp + 0x2408]
mov ecx, dword [ebp + 0x240c]
mov dword [ebp + 0x318c], edx
mov edx, dword [ebp + 0x2410]
mov dword [ebp + 0x3190], eax
mov eax, dword [ebp + 0x2414]
mov dword [ebp + 0x3194], ecx
mov dword [ebp + 0x3198], edx
mov dword [ebp + 0x319c], eax
lea ebx, [ebp + 0x31a0]
mov edx, ebx
lea eax, [esp + 0x14]
call fcn.100421e0
lea edx, [ebp + 0x31a2]
lea eax, [esp + 0x14]
call fcn.100421e0
mov ecx, 0x3ff
cmp word [ebx], cx
jbe 0x1003a0f9
mov eax, ecx
mov word [ebx], ax
cmp word [edx], cx
jbe 0x1003a103
mov eax, ecx
mov word [edx], ax
movzx edi, word [ebx]
lea ecx, [ebp + 0x31a4]
lea esi, [esp + 0x14]
call fcn.10042260
movzx edi, word [ebp + 0x31a2]
lea ecx, [ebp + 0x35a4]
call fcn.10042260
movzx ecx, word [ebx]
mov byte [ecx + ebp + 0x31a4], 0
movzx edx, word [ebp + 0x31a2]
mov byte [edx + ebp + 0x35a4], 0
jmp case.default.0x1003a087
mov eax, dword [ebp + 0x2404]
mov ecx, dword [ebp + 0x2408]
mov edx, dword [ebp + 0x240c]
mov dword [ebp + 0x39a4], eax
mov eax, dword [ebp + 0x2410]
mov dword [ebp + 0x39a8], ecx
mov ecx, dword [ebp + 0x2414]
mov dword [ebp + 0x39ac], edx
mov dword [ebp + 0x39b0], eax
mov dword [ebp + 0x39b4], ecx
lea edx, [ebp + 0x39b8]
lea ecx, [esp + 0x14]
call fcn.10042220
lea edx, [ebp + 0x39bc]
call fcn.10042220
jmp case.default.0x1003a087
mov edx, dword [ebp + 0x2404]
mov eax, dword [ebp + 0x2408]
mov ecx, dword [ebp + 0x240c]
mov dword [ebp + 0x39c0], edx
mov edx, dword [ebp + 0x2410]
mov dword [ebp + 0x39c4], eax
mov eax, dword [ebp + 0x2414]
mov dword [ebp + 0x39c8], ecx
mov dword [ebp + 0x39cc], edx
lea edx, [ebp + 0x39d4]
lea ecx, [esp + 0x14]
mov dword [ebp + 0x39d0], eax
call fcn.10042220
lea edx, [ebp + 0x39d8]
mov eax, ecx
call fcn.100421c0
lea edx, [ebp + 0x39d9]
call fcn.100421c0
lea edx, [ebp + 0x39dc]
mov ecx, eax
call fcn.10042220
jmp case.default.0x1003a087
mov ecx, dword [ebp + 0x2404]
mov edx, dword [ebp + 0x2408]
mov eax, dword [ebp + 0x240c]
mov dword [ebp + 0x39e0], ecx
mov ecx, dword [ebp + 0x2410]
mov dword [ebp + 0x39e4], edx
mov edx, dword [ebp + 0x2414]
mov dword [ebp + 0x39e8], eax
mov dword [ebp + 0x39ec], ecx
mov dword [ebp + 0x39f0], edx
lea edx, [ebp + 0x39f4]
lea ecx, [esp + 0x14]
call fcn.10042220
lea edx, [ebp + 0x39f8]
mov eax, ecx
call fcn.100421c0
lea edx, [ebp + 0x39f9]
call fcn.100421c0
lea edx, [ebp + 0x39fc]
mov ecx, eax
call fcn.10042220
lea ebx, [ebp + 0x3a00]
mov edx, ebx
mov eax, ecx
call fcn.100421e0
mov eax, 0x3ff
cmp word [ebx], ax
jbe 0x1003a2a4
mov ecx, eax
mov word [ebx], cx
movzx edi, word [ebx]
lea ecx, [ebp + 0x3a02]
lea esi, [esp + 0x14]
call fcn.10042260
movzx edx, word [ebx]
mov byte [edx + ebp + 0x3a02], 0
jmp case.default.0x1003a087
mov eax, 0x8000
test word [ebx], ax
je case.default.0x1003a087
lea edx, [esp + 0x38]
lea ecx, [esp + 0x14]
call fcn.10042220
mov ecx, dword [esp + 0x38]
add dword [ebp + 0x3e10], ecx
adc dword [ebp + 0x3e14], 0
mov ebx, dword [esp + 0x24]
cmp ebx, 2
mov edi, dword [esp + 0x14]
jle 0x1003a30c
lea edx, [edi + 2]
push edx
lea eax, [ebx - 2]
or edx, 0xffffffff
call fcn.10040860
add esp, 4
jmp 0x1003a30f
or eax, 0xffffffff
cmp byte [esp + 0x32], 0
mov esi, dword [ebp + 0x16b8]
mov ecx, eax
not ecx
mov word [ebp + 0x3e2a], cx
mov dword [ebp + 0x16ac], esi
je 0x1003a3e9
mov eax, dword [esp + 0x18]
sub eax, ebx
add eax, 8
cdq
add dword [ebp + 0x3e10], eax
adc dword [ebp + 0x3e14], edx
cmp word [ebp + 0x16b4], cx
je 0x1003a3e9
cmp esi, 0x7b
jne 0x1003a3b2
test byte [ebp + 0x23f8], 4
je 0x1003a3b2
mov eax, ebp
lea esi, [esp + 0x48]
call fcn.10039600
mov edi, ebp
call fcn.10035840
sub eax, 7
push 0
sbb edx, 0
push edx
push eax
mov ecx, ebp
call fcn.10035780
mov bl, 1
mov esi, 7
lea esp, [esp]
push ebp
call fcn.100358a0
test al, al
je 0x1003a39c
xor bl, bl
sub esi, 1
jne 0x1003a390
lea eax, [esp + 0x48]
call fcn.10039620
mov edi, dword [esp + 0x14]
test bl, bl
jne 0x1003a3e5
mov esi, ebp
call fcn.10035580
mov byte [ebp + 0x3e28], 1
inc dword [0x100e1ef4]
mov dword [0x100e1ef0], 3
test edi, edi
je 0x1003987e
push edi
call fcn.100631a6
add esp, 4
xor eax, eax
jmp 0x1003a416
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 0x3e14]
cmp eax, dword [ebp + 0x3e0c]
jg 0x1003a407
jl 0x1003a3b9
mov ecx, dword [ebp + 0x3e10]
cmp ecx, dword [ebp + 0x3e08]
jbe 0x1003a3b9
test edi, edi
je 0x1003a414
push edi
call fcn.100631a6
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x108c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10062448
add esp, 0x1080
ret 4