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

Disassembly:
mov eax, 0x1080
call fcn.10066c20
mov eax, dword [0x100d1040]
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.10035df0
cmp byte [ebp + 0x3e18], 0
mov dword [ebp + 0x3e08], eax
mov dword [ebp + 0x3e0c], edx
je 0x10039229
call fcn.1003a050
jmp 0x10039ff6
xor ebx, ebx
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 0x100393a8
mov eax, dword [ebp + 0x3e24]
xor ecx, ecx
add eax, 0x14
cmp edx, ecx
jl 0x100393a8
jg 0x10039276
mov ecx, dword [ebp + 0x3e08]
cmp ecx, eax
jb 0x100393a8
push 8
lea edi, [ebp + 0xe60]
push edi
mov eax, ebp
mov byte [esp + 0x3a], 1
call fcn.10035ba0
cmp eax, 8
jne 0x100393a1
cmp dword [ebp + 0x4a48], ebx
jne 0x100392a8
mov esi, ebp
call fcn.10035b20
call fcn.100409b0
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 0x100392f1
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x100392f1
mov ecx, dword [ebp + 0x1390]
mov edx, dword [esp + 0x34]
add ecx, 0x18
push edx
mov eax, 0x80
call fcn.100405d0
add esp, 4
test al, al
jne 0x100392fd
mov esi, ebp
call fcn.10035b20
call fcn.100409b0
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.10042770
mov dword [esp + 0x2c], esi
push 7
lea esi, [esp + 0x18]
call fcn.10041c70
mov esi, dword [esp + 0x24]
cmp esi, ebx
jne 0x100393ae
mov eax, ebp
call fcn.10035e80
mov ecx, dword [ebp + 0x3e0c]
cmp ecx, edx
jg 0x10039378
jl 0x10039362
mov ecx, dword [ebp + 0x3e08]
cmp ecx, eax
ja 0x10039378
mov ecx, dword [ebp + 0x3e14]
cmp ecx, edx
jl 0x10039390
jg 0x10039378
mov edx, dword [ebp + 0x3e10]
cmp edx, eax
jbe 0x10039390
cmp dword [0x100d4ea4], ebx
jne 0x1003938a
mov dword [0x100d4ea4], 1
inc dword [0x100d4ea8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100393a1
push eax
call fcn.10057e66
add esp, 4
xor eax, eax
jmp 0x10039ff6
mov byte [esp + 0x32], bl
jmp 0x10039332
mov eax, dword [esp + 0x28]
lea ecx, [eax + 1]
cmp ecx, esi
mov ecx, dword [esp + 0x14]
jge 0x100393dd
movzx dx, byte [eax + ecx + 1]
mov edi, 0x100
imul dx, di
movzx di, byte [eax + ecx]
add dx, di
add eax, 2
mov dword [esp + 0x28], eax
jmp 0x100393df
xor edx, edx
cmp eax, esi
mov word [ebp + 0x16b4], dx
jge 0x100393f4
mov dl, byte [eax + ecx]
inc eax
mov dword [esp + 0x28], eax
jmp 0x100393f6
xor dl, dl
movzx edx, dl
mov dword [ebp + 0x16b8], edx
lea edx, [eax + 1]
cmp edx, esi
jge 0x10039426
movzx dx, byte [eax + ecx + 1]
mov edi, 0x100
imul dx, di
movzx di, byte [eax + ecx]
add dx, di
add eax, 2
mov dword [esp + 0x28], eax
jmp 0x10039428
xor edx, edx
mov word [ebp + 0x16bc], dx
lea edx, [eax + 1]
cmp edx, esi
jge 0x1003945d
movzx dx, byte [eax + ecx + 1]
mov esi, 0x100
imul dx, si
movzx si, byte [eax + ecx]
add dx, si
add eax, 2
mov word [ebp + 0x16be], dx
mov dword [esp + 0x28], eax
jmp 0x10039466
xor eax, eax
mov word [ebp + 0x16be], ax
movzx eax, word [ebp + 0x16be]
cmp ax, 7
jae 0x100394a2
mov byte [ebp + 0x3e28], 1
inc dword [0x100d4ea8]
mov dword [0x100d4ea4], 3
cmp ecx, ebx
je 0x100393a1
push ecx
call fcn.10057e66
add esp, 4
xor eax, eax
jmp 0x10039ff6
mov ecx, dword [ebp + 0x16b8]
cmp ecx, 0x75
jne 0x100394b1
push 6
jmp 0x100394ca
cmp ecx, 0x73
jne 0x100394c3
test byte [ebp + 0x16bc], 2
je 0x100394c3
push 6
jmp 0x100394ca
movzx ecx, ax
sub ecx, 7
push ecx
lea esi, [esp + 0x18]
call fcn.10041c70
movzx eax, word [ebp + 0x16be]
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.0x10039505
jmp dword [ecx*4 + 0x1003a014]
mov edx, dword [ebp + 0x16b4]
mov eax, dword [ebp + 0x16b8]
mov ecx, dword [ebp + 0x16bc]
mov dword [ebp + 0x16c0], edx
mov dword [ebp + 0x16c4], eax
lea edx, [ebp + 0x16cc]
lea eax, [esp + 0x14]
mov dword [ebp + 0x16c8], ecx
call fcn.10041da0
lea edx, [ebp + 0x16d0]
lea ecx, [esp + 0x14]
call fcn.10041de0
mov edx, 0x200
test word [ebp + 0x16c8], dx
je case.default.0x10039c61
lea edx, [ebp + 0x16d4]
mov eax, ecx
call fcn.10041d80
jmp case.default.0x10039c61
mov eax, dword [ebp + 0x16b4]
mov edx, dword [ebp + 0x16bc]
mov ecx, dword [ebp + 0x16b8]
mov dword [ebp + 0x23f0], eax
mov dword [ebp + 0x23f4], ecx
mov dword [ebp + 0x23f8], edx
test dl, 2
je 0x100395aa
lea edx, [ebp + 0x23fc]
lea ecx, [esp + 0x14]
call fcn.10041de0
test byte [ebp + 0x23f8], 8
je case.default.0x10039c61
lea edx, [ebp + 0x2400]
lea eax, [esp + 0x14]
call fcn.10041da0
jmp case.default.0x10039c61
lea ebx, [ebp + 0x16d8]
cmp eax, 0x74
je 0x100395dc
lea ebx, [ebp + 0x2418]
mov eax, dword [ebp + 0x16b4]
mov dword [ebx], eax
mov ecx, dword [ebp + 0x16b8]
mov dword [ebx + 4], ecx
mov edx, dword [ebp + 0x16bc]
mov dword [ebx + 8], edx
lea edx, [ebx + 0xc]
lea ecx, [esp + 0x14]
call fcn.10041de0
lea esi, [ebx + 0x10]
mov edx, esi
call fcn.10041de0
lea edx, [ebx + 0x14]
mov eax, ecx
call fcn.10041d80
lea edx, [ebx + 0x18]
mov ecx, eax
call fcn.10041de0
lea edx, [ebx + 0x1c]
call fcn.10041de0
lea edx, [ebx + 0x20]
mov eax, ecx
call fcn.10041d80
lea edx, [ebx + 0x21]
call fcn.10041d80
lea edx, [ebx + 0x22]
call fcn.10041da0
lea edx, [ebx + 0x24]
lea ecx, [esp + 0x14]
call fcn.10041de0
mov eax, 0x100
lea edi, [ebx + 0x28]
test word [ebx + 8], ax
je 0x1003966d
mov edx, edi
call fcn.10041de0
lea edx, [ebx + 0x2c]
call fcn.10041de0
jmp 0x1003968c
cmp dword [esi], 0xffffffff
mov dword [ebx + 0x2c], 0
mov dword [edi], 0
jne 0x1003968c
mov dword [esi], 0
mov dword [ebx + 0x2c], closesocket
mov ecx, dword [edi]
push 1
push 0
push 0
push ecx
call fcn.10065760
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 [ebx + 0x2c]
push edi
push edx
mov dword [ebx + 0xd08], eax
call fcn.10065760
mov ecx, dword [esi]
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 0x100396e3
mov edi, edx
lea ecx, [esp + 0x88]
lea esi, [esp + 0x14]
call fcn.10041e20
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.100594c0
mov byte [esi + 0x3ff], 0
mov eax, dword [ebx + 4]
add esp, 0xc
cmp eax, 0x7a
jne 0x100397b0
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 0x10039746
sub edi, 8
test edi, edi
jle 0x1003987b
lea esi, [ebx + 0xc30]
mov ecx, edi
call fcn.10035810
mov ecx, dword [ebx + 0xc30]
lea esi, [esp + 0x14]
call fcn.10041e20
mov ecx, 0x100c5af4
mov eax, ebx
call fcn.10034af0
test al, al
je 0x1003987b
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 0x1003987b
cmp eax, 0x74
jne 0x1003987b
mov ecx, 0x200
test word [ebx + 8], cx
je 0x10039858
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]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100397e5
movzx ecx, word [ebx + 0x22]
sub eax, edx
lea edi, [ebx + 0x430]
cmp eax, ecx
jne 0x1003982a
mov eax, edi
lea edx, [esp + 0x88]
call fcn.100406f0
mov esi, dword [esp + 0x40]
push edi
mov eax, 0x3ff
mov ecx, esi
call fcn.100405d0
add esp, 4
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
xor esi, esi
jmp 0x10039848
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.10042ed0
cmp word [edi], si
jne 0x10039863
mov edx, 0xfdff
and word [ebx + 8], dx
jmp 0x10039863
lea edi, [ebx + 0x430]
xor eax, eax
mov word [edi], ax
mov esi, dword [esp + 0x40]
push ebp
call fcn.1003a490
mov esi, ebp
call fcn.1003a4f0
mov edx, ebp
call fcn.1003a520
mov ecx, 0x400
test word [ebx + 8], cx
je 0x1003989a
lea ecx, [ebx + 0xc3c]
mov edi, 8
lea esi, [esp + 0x14]
call fcn.10041e20
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0xc48]
call fcn.10040a70
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 0x100399d2
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
call fcn.10041da0
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
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 0x100399bd
test esi, esi
je 0x10039949
lea edx, [esp + 0x60]
lea ecx, [esp + 0x14]
call fcn.10041de0
mov eax, dword [esp + 0x60]
mov ecx, edi
call fcn.10040a70
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 0x10039964
inc dword [esp + 0x78]
and eax, 3
mov dword [esp + 0x7c], 0
jle 0x100399a2
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.10041d80
movzx eax, byte [esp + 0x33]
mov ecx, esi
shl eax, cl
add esi, 8
or dword [esp + 0x7c], eax
sub edi, 1
jne 0x10039980
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + edx*4 + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, 9
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x3c]
sub edx, 4
inc esi
cmp edx, 0xfffffffc
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], edx
jg 0x10039910
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.10041e50
not eax
mov word [ebp + 0x3e2a], ax
cmp word [ebx], ax
je case.default.0x10039c61
cmp dword [ebx + 4], 0x7a
jne 0x10039a2d
mov ecx, dword [esp + 0x40]
push str._____
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [ebp + 0x3e28], 1
cmp dword [0x100d4ea4], 0
jne 0x10039a47
mov dword [0x100d4ea4], 1
inc dword [0x100d4ea8]
jmp case.default.0x10039c61
mov edx, dword [ebp + 0x16b4]
mov eax, dword [ebp + 0x16b8]
mov ecx, dword [ebp + 0x16bc]
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.10041da0
lea edx, [ebp + 0x313e]
lea eax, [esp + 0x14]
call fcn.10041d80
lea edx, [ebp + 0x313f]
call fcn.10041d80
lea edx, [ebp + 0x3140]
call fcn.10041da0
jmp case.default.0x10039c61
mov edx, dword [ebp + 0x16b4]
mov eax, dword [ebp + 0x16b8]
mov ecx, dword [ebp + 0x16bc]
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.10041de0
lea edx, [ebp + 0x3188]
mov eax, ecx
call fcn.10041da0
lea edx, [ebp + 0x318a]
lea eax, [esp + 0x14]
call fcn.10041da0
jmp case.default.0x10039c61
mov edx, dword [ebp + 0x16b4]
mov eax, dword [ebp + 0x16b8]
mov ecx, dword [ebp + 0x16bc]
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.10041d80
lea edx, [ebp + 0x3171]
call fcn.10041d80
lea edx, [ebp + 0x3172]
call fcn.10041d80
lea edx, [ebp + 0x3174]
mov ecx, eax
call fcn.10041de0
jmp case.default.0x10039c61
mov edx, dword [ebp + 0x16b4]
mov eax, dword [ebp + 0x16b8]
mov ecx, dword [ebp + 0x16bc]
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.10041de0
lea edx, [ebp + 0x3154]
mov eax, ecx
call fcn.10041d80
lea edx, [ebp + 0x3156]
call fcn.10041da0
lea edx, [ebp + 0x3158]
lea ecx, [esp + 0x14]
call fcn.10041de0
lea ecx, [ebp + 0x315c]
mov edi, 8
lea esi, [esp + 0x14]
call fcn.10041e20
mov edx, dword [ebx]
add dword [ebp + 0x3e10], edx
movzx eax, word [ebp + 0x3156]
adc dword [ebp + 0x3e14], 0
mov dword [ebp + 0x1668], eax
jmp case.default.0x10039c61
mov ecx, dword [ebp + 0x16b4]
mov edx, dword [ebp + 0x16b8]
mov eax, dword [ebp + 0x16bc]
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.10041de0
mov ecx, dword [edx]
add dword [ebp + 0x3e10], ecx
lea esi, [ebp + 0x2414]
mov edx, esi
adc dword [ebp + 0x3e14], ebx
lea eax, [esp + 0x14]
call fcn.10041da0
lea edx, [ebp + 0x2416]
lea eax, [esp + 0x14]
call fcn.10041d80
movzx eax, word [esi]
add eax, 0xffffff00
cmp eax, 5
ja case.default.0x10039c61
jmp dword [eax*4 + 0x1003a038]
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.10041da0
lea edx, [ebp + 0x31a2]
lea eax, [esp + 0x14]
call fcn.10041da0
mov ecx, 0x3ff
cmp word [ebx], cx
jbe 0x10039cd3
mov eax, ecx
mov word [ebx], ax
cmp word [edx], cx
jbe 0x10039cdd
mov eax, ecx
mov word [edx], ax
movzx edi, word [ebx]
lea ecx, [ebp + 0x31a4]
lea esi, [esp + 0x14]
call fcn.10041e20
movzx edi, word [ebp + 0x31a2]
lea ecx, [ebp + 0x35a4]
call fcn.10041e20
movzx ecx, word [ebx]
mov byte [ecx + ebp + 0x31a4], 0
movzx edx, word [ebp + 0x31a2]
mov byte [edx + ebp + 0x35a4], 0
jmp case.default.0x10039c61
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.10041de0
lea edx, [ebp + 0x39bc]
call fcn.10041de0
jmp case.default.0x10039c61
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.10041de0
lea edx, [ebp + 0x39d8]
mov eax, ecx
call fcn.10041d80
lea edx, [ebp + 0x39d9]
call fcn.10041d80
lea edx, [ebp + 0x39dc]
mov ecx, eax
call fcn.10041de0
jmp case.default.0x10039c61
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.10041de0
lea edx, [ebp + 0x39f8]
mov eax, ecx
call fcn.10041d80
lea edx, [ebp + 0x39f9]
call fcn.10041d80
lea edx, [ebp + 0x39fc]
mov ecx, eax
call fcn.10041de0
lea ebx, [ebp + 0x3a00]
mov edx, ebx
mov eax, ecx
call fcn.10041da0
mov eax, 0x3ff
cmp word [ebx], ax
jbe 0x10039e7e
mov ecx, eax
mov word [ebx], cx
movzx edi, word [ebx]
lea ecx, [ebp + 0x3a02]
lea esi, [esp + 0x14]
call fcn.10041e20
movzx edx, word [ebx]
mov byte [edx + ebp + 0x3a02], 0
jmp case.default.0x10039c61
mov eax, 0x8000
test word [ebp + 0x16bc], ax
je case.default.0x10039c61
lea edx, [esp + 0x38]
lea ecx, [esp + 0x14]
call fcn.10041de0
mov ecx, dword [esp + 0x38]
add dword [ebp + 0x3e10], ecx
adc dword [ebp + 0x3e14], ebx
mov ebx, dword [esp + 0x24]
cmp ebx, 2
mov edi, dword [esp + 0x14]
jle 0x10039ee9
lea edx, [edi + 2]
push edx
lea eax, [ebx - 2]
or edx, 0xffffffff
call fcn.100404d0
add esp, 4
jmp 0x10039eec
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 0x10039fc9
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 0x10039fc9
cmp esi, 0x7b
jne 0x10039f92
test byte [ebp + 0x23f8], 4
je 0x10039f92
mov eax, ebp
lea esi, [esp + 0x48]
call fcn.100390b0
mov edi, ebp
call fcn.10035df0
sub eax, 7
push 0
sbb edx, 0
push edx
push eax
mov ecx, ebp
call fcn.10035d20
mov bl, 1
mov esi, 7
lea esp, [esp]
push ebp
call fcn.10035e50
test al, al
je 0x10039f7c
xor bl, bl
sub esi, 1
jne 0x10039f70
lea eax, [esp + 0x48]
call fcn.100390d0
mov edi, dword [esp + 0x14]
test bl, bl
jne 0x10039fc5
mov esi, ebp
call fcn.10035b20
mov byte [ebp + 0x3e28], 1
inc dword [0x100d4ea8]
mov dword [0x100d4ea4], 3
test edi, edi
je 0x100393a1
push edi
call fcn.10057e66
add esp, 4
xor eax, eax
jmp 0x10039ff6
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 0x3e14]
cmp eax, dword [ebp + 0x3e0c]
jg 0x10039fe7
jl 0x10039f99
mov ecx, dword [ebp + 0x3e10]
cmp ecx, dword [ebp + 0x3e08]
jbe 0x10039f99
test edi, edi
je 0x10039ff4
push edi
call fcn.10057e66
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x108c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005710f
add esp, 0x1080
ret 4