Function at 0x477520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ba218
push eax
mov eax, 0x108c
mov dword fs:[0], esp
call fcn.004b9d80
push ebx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
xor ecx, ecx
xor edx, edx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 2
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
setne dl
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x40], 0x4bd2c4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x48], ecx
dec edx
and edx, dword [0x4e7de0]
add eax, eax
mov dword [ebp - 0x70], edx
mov edx, dword [esi + 8]
mov esi, dword [edx + eax*8 + 0xc]
lea eax, [edx + eax*8 + 0xc]
cmp dword [esi + 8], 0x41
mov edi, dword [0x4e4b24]
mov dword [ebp - 0x24], esi
je 0x479383
mov eax, 0x10
call fcn.004b9d80
mov eax, dword [esi]
mov ebx, esp
mov dword [ebx], eax
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov edx, dword [esi + 8]
mov dword [ebx + 8], edx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x50], ebx
cmp eax, 8
jge 0x477a57
cmp eax, 7
jne 0x479035
mov esi, dword [ebx + 4]
test esi, esi
je 0x47788a
mov ecx, dword [ebx]
xor edi, edi
mov dword [ebx], 0x4bd2c4
mov dword [ebx + 8], edi
mov eax, dword [ecx]
mov dword [ebp - 0x14], ecx
cmp eax, esi
jne 0x47763b
movzx edx, word [ecx + 0xa]
cmp word [esi + edx*2], di
jne 0x47763b
cmp byte [ecx + 0x14], 0
je 0x47763b
mov edx, dword [ecx + 4]
cmp byte [edx + 0x17], 0
jne 0x477611
mov edx, dword [edx + 0xc]
test byte [edx + 0x15], 2
je 0x47763b
mov dword [ebx + 8], 6
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0x17], 0
jne 0x47762a
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
mov dword [ebx], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
jmp 0x479035
test eax, eax
je 0x477755
cmp esi, eax
mov eax, dword [ebp - 0x14]
jae 0x47766b
lea ebx, [ebx]
cmp edi, 0xfd
jae 0x477673
mov cx, word [esi]
mov word [ebp + edi*2 - 0x294], cx
add esi, 2
inc edi
cmp esi, dword [eax]
jb 0x477650
cmp edi, 0xfd
jb 0x47767b
cmp esi, dword [eax]
jb 0x4777da
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
movzx eax, byte [eax + 0x17]
cmp eax, 3
ja case.default.0x47768a
jmp dword [eax*4 + 0x479714]
mov eax, dword [ebp - 0x18]
call fcn.00401160
cmp dword [0x4e4a28], 0
jne 0x4776dd
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0xc], 0
jne 0x4776dd
push 0
lea eax, [ebp - 0x8c]
mov ecx, edx
mov edx, dword [ecx + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4776d1
mov dword [0x4eaf78], 0
dec eax
jmp 0x477717
mov eax, dword [ebp - 0x18]
mov dword [0x4eaf78], eax
xor eax, eax
jmp 0x477717
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xc]
shr eax, 1
jmp 0x477717
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xc]
push 0
call fcn.004a2bf0
jmp 0x477717
xor ecx, ecx
call fcn.00404e70
cmp eax, 0xffffffff
jne 0x477717
xor eax, eax
jmp 0x477717
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x10]
push ecx
push 0
call edx
add esp, 8
mov ecx, 0xfd
sub ecx, edi
cmp eax, ecx
ja 0x4777da
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
lea edx, [ebp + edi*2 - 0x294]
push edx
call fcn.004a2bf0
add edi, eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xa]
add eax, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
lea esi, [esi + ecx*2]
test eax, eax
jne 0x477643
movzx eax, word [esi]
test ax, ax
je 0x47777c
lea ecx, [ecx]
cmp edi, 0xfd
jae 0x477784
add esi, 2
mov word [ebp + edi*2 - 0x294], ax
movzx eax, word [esi]
inc edi
test ax, ax
jne 0x477760
cmp edi, 0xfd
jb 0x47778a
cmp word [esi], 0
jne 0x4777da
mov eax, dword [ebp - 0x14]
test edi, edi
jne 0x477797
cmp byte [eax + 8], 0
je 0x4777dd
xor edx, edx
mov word [ebp + edi*2 - 0x294], dx
cmp byte [eax + 8], dl
je 0x477829
lea eax, [edi + edi + 2]
mov dword [ebx + 8], edx
call fcn.004b9db0
mov esi, esp
lea eax, [ebp - 0x294]
mov edx, esi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4777c4
mov dword [ebx], esi
jmp 0x479035
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x4777ea
add eax, 0xc
cmp dword [eax], 0
jne 0x4777e2
cmp byte [eax + 8], 0
je 0x479035
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je case.0x479458.3
mov eax, dword [ebp - 0x40]
test eax, eax
je case.0x479458.3
push 1
push 0
push 0xffffffffffffffff
push eax
push ecx
call fcn.004a2810
test eax, eax
jne case.0x479458.3
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp case.0x479458.3
cmp word [ebp - 0x294], dx
je 0x479559
lea edx, [ebp - 0x55]
push edx
push 3
lea eax, [ebp - 0x88]
push eax
push edi
lea ecx, [ebp - 0x294]
push ecx
mov ecx, 0x4ea1d0
call fcn.0043d1c0
test eax, eax
jne 0x477882
cmp byte [ebp - 0x55], al
mov edx, dword [ebp - 0x88]
setne al
mov ecx, edi
inc eax
push eax
push edx
push 0x4ea1d0
lea edx, [ebp - 0x294]
call fcn.0043d770
test eax, eax
je 0x479559
mov edi, dword [0x4e4b24]
mov dword [ebx], eax
mov esi, dword [ebx]
mov al, byte [esi + 0x17]
test al, al
jne 0x477899
mov eax, dword [esi + 0xc]
mov al, byte [eax + 0x17]
movzx ecx, al
mov eax, 1
sub ecx, eax
je 0x4778e4
sub ecx, 3
jne 0x47791a
mov ecx, dword [esi + 0x10]
cmp ecx, 0x460190
jne 0x4778c8
mov ecx, dword [edi + 8]
mov dword [ebx], ecx
mov edx, dword [edi + 0xc]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
jmp 0x479035
cmp ecx, 0x460a20
jne 0x47791a
mov ecx, dword [edi + 0x38]
mov dword [ebx], ecx
mov dword [ebx + 4], 0
mov dword [ebx + 8], eax
jmp 0x479035
cmp dword [0x4e4a28], 0
jne 0x478d1d
cmp byte [esi + 0x17], 0
jne 0x4778fc
mov eax, dword [esi + 0xc]
jmp 0x4778fe
mov eax, esi
test byte [eax + 0x15], 0xa
jne 0x478d1d
xor edx, edx
cmp dword [eax + 0xc], edx
setne dl
mov eax, edx
test eax, eax
jne 0x478d1d
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x477923
jmp dword [eax*4 + 0x479724]
mov eax, esi
call fcn.00401160
cmp dword [0x4e4a28], 0
jne 0x47796e
cmp dword [esi + 0xc], 0
jne 0x47796e
mov ecx, dword [esi + 0x18]
push 0
lea eax, [ebp - 0x90]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x477964
mov dword [0x4eaf78], 0
dec eax
jmp 0x47799f
mov dword [0x4eaf78], esi
xor eax, eax
jmp 0x47799f
mov eax, dword [esi + 0xc]
shr eax, 1
jmp 0x47799f
mov ecx, dword [esi + 0xc]
push 0
call fcn.004a2bf0
jmp 0x47799f
xor ecx, ecx
call fcn.00404e70
cmp eax, 0xffffffff
jne 0x47799f
xor eax, eax
jmp 0x47799f
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push 0
call eax
add esp, 8
lea esi, [eax + 1]
cmp esi, 1
jne 0x4779cb
mov eax, dword [ebx]
mov cl, byte [eax + 0x17]
test cl, cl
jne 0x4779b6
mov ecx, dword [eax + 0xc]
mov cl, byte [ecx + 0x17]
cmp cl, 1
jne 0x4781b4
mov dword [ebx + 8], 4
jmp 0x479035
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov edx, edi
sub edx, dword [eax]
mov eax, dword [ecx]
sar edx, 1
sub eax, edx
cmp esi, eax
ja 0x4779ea
lea ecx, [edi + esi*2]
mov dword [ebp - 0x60], ecx
jmp 0x477a3a
cmp esi, 0x1001
jae 0x477a0a
cmp dword [ebp - 0x48], 0x9c40
jae 0x477a0a
lea eax, [esi + esi]
call fcn.004b9db0
add dword [ebp - 0x48], esi
mov edi, esp
jmp 0x477a3a
mov edi, dword [ebp - 0x28]
cmp edi, 0x100
je 0x4792d0
lea edx, [esi + esi]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp + edi*4 - 0xe94], eax
test eax, eax
je 0x4792d0
inc dword [ebp - 0x28]
mov edi, eax
mov ecx, dword [ebx]
push edi
call fcn.004a2bf0
mov dword [ebx], edi
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
jmp 0x479035
cmp eax, 0x3e
jne 0x477e72
mov eax, dword [ebx]
movzx ecx, byte [eax + 9]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x38], ecx
cmp ecx, eax
jg 0x4777f4
sub eax, ecx
mov dword [ebp - 0x1c], eax
lea esi, [ebp + eax*4 - 0xa94]
test edx, edx
jne 0x477b18
test eax, eax
je 0x4777f4
dec eax
mov edi, dword [ebp + eax*4 - 0xa94]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + eax*4 - 0xa94]
call fcn.0046f200
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x477b01
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x477ad4
lea eax, [edi*4]
push eax
lea ecx, [esi + 4]
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
inc dword [ebp - 0x5c]
mov eax, 0x10
call fcn.004b9d80
mov eax, esp
mov dword [esi], eax
mov dword [eax + 8], 0
mov edx, dword [esi]
sub esi, 4
add edi, 2
mov dword [edx], 0x4bd2c4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x18], 0x4e6038
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x14]
jge 0x477b18
mov edx, dword [ebx]
cmp byte [edx + 8], 2
jne 0x4777f4
mov ecx, dword [ebx + 0xc]
xor edi, edi
lea eax, [ebp - 0x294]
mov dword [ebx + 4], eax
mov dword [ebp - 0x30], ecx
mov dword [ebx + 0xc], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 4], edi
mov edx, dword [ebx]
cmp byte [edx + 8], 2
mov edx, dword [ebp - 0x38]
sete al
movzx ecx, al
push ecx
mov ecx, dword [ebp - 0x18]
push edx
push esi
mov esi, dword [ebp + 0x10]
push ebx
push esi
lea eax, [ebp - 0x6c]
push eax
push ecx
call fcn.00479930
test al, al
je 0x4792db
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.004774d0
mov dword [0x4ea818], edi
mov eax, dword [ebx + 8]
cmp eax, 1
je 0x477e44
cmp eax, 2
je 0x477e44
cmp eax, 6
je 0x477e44
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x477bb7
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x18], 0x41
jne 0x477bb7
cmp byte [edi], 3
mov dword [ebp - 0x38], 1
je 0x47930b
mov esi, dword [ebp - 0x70]
jmp 0x477bf0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x18], 0x13
mov dword [ebp - 0x38], 0
jne 0x477bee
test eax, eax
je 0x477bee
lea eax, [ebp + eax*4 - 0xa94]
mov eax, dword [eax - 4]
cmp dword [eax + 8], 4
jne 0x477bee
mov esi, dword [eax]
mov al, byte [esi + 0x17]
test al, al
jne 0x477bea
mov edx, dword [esi + 0xc]
mov al, byte [edx + 0x17]
cmp al, 1
je 0x477bf0
xor esi, esi
mov eax, dword [ebx]
test esi, esi
je 0x477cb7
mov ecx, dword [0x4e4b24]
mov edx, dword [ebp - 0x18]
cmp dword [ecx + 0xb4], edx
jne 0x477c1a
mov cl, byte [esi + 0x16]
and cl, 0x22
cmp cl, 2
je 0x477cb7
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
jne 0x477c30
mov edx, dword [ebx + 4]
push edx
mov edi, ecx
mov eax, esi
call fcn.004a2f20
jmp 0x477c7e
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477c33
mov ecx, dword [ebx]
sub eax, edx
sar eax, 1
cmp ecx, dword [0x4e9044]
jne 0x477c69
cmp eax, 0x40
jb 0x477c69
push eax
mov edi, ecx
mov eax, esi
call fcn.004a2f20
xor eax, eax
mov dword [0x4e9044], eax
mov dword [0x4e9048], eax
jmp 0x477c7e
push 1
push 0
push 0xffffffffffffffff
push ecx
push esi
call fcn.004a2810
test eax, eax
je 0x479345
cmp dword [ebp - 0x38], 0
jne 0x47931c
mov eax, dword [ebp - 0x24]
dec dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x6c]
mov dword [ebx], esi
mov dword [ebx + 8], 4
mov dword [ebp - 4], 0xffffffff
call fcn.00479e00
jmp 0x479035
mov ecx, dword [ebx + 0xc]
mov edx, 1
test ecx, ecx
je 0x477ce3
mov esi, dword [ebp - 0x28]
cmp esi, 0x100
je 0x479330
cmp ecx, eax
jne 0x477cd8
xor edx, edx
mov dword [ebp + esi*4 - 0xe94], ecx
inc esi
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx]
xor esi, esi
cmp word [ecx], si
jne 0x477d16
lea eax, [ebp - 0x6c]
mov dword [ebx], 0x4bd2c4
mov dword [ebx + 8], 5
mov dword [ebx + 4], esi
mov dword [ebp - 4], 0xffffffff
call fcn.00479e00
jmp 0x479035
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + 0x51], 0
je 0x477d2d
cmp edx, esi
je 0x477d67
xor edx, edx
cmp dword [ebp - 0x38], esi
sete dl
jmp 0x477d67
cmp eax, dword [0x4e9044]
jne 0x477d62
xor edx, edx
cmp dword [ebp - 0x38], esi
jne 0x477d67
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x18]
add ecx, 0x18
cmp eax, 0x41
je 0x477d67
lea ebx, [ebx]
cmp eax, 0x3e
je 0x477d62
mov eax, dword [ecx + 0x10]
add ecx, 0x10
cmp eax, 0x41
jne 0x477d50
jmp 0x477d67
mov edx, 1
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov dword [ebx + 8], 5
cmp edx, esi
je 0x477e2e
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x477d80
mov edi, dword [ebp - 0x60]
mov ecx, dword [ebp + 0x20]
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
mov eax, dword [ebp + 0x1c]
mov edx, edi
sub edx, dword [eax]
mov eax, dword [ecx]
sar edx, 1
sub eax, edx
cmp esi, eax
ja 0x477dbf
mov eax, dword [ebx]
add esi, esi
push esi
push eax
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add edi, esi
mov dword [ebp - 0x60], edi
jmp 0x477e2e
cmp esi, 0x1001
jae 0x477def
cmp dword [ebp - 0x48], 0x9c40
jae 0x477def
lea eax, [esi + esi]
call fcn.004b9db0
mov eax, esp
lea ecx, [esi + esi]
push ecx
mov ecx, dword [ebx]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [ebp - 0x48], esi
jmp 0x477e2e
cmp dword [ebp - 0x28], 0x100
je 0x479359
lea edx, [esi + esi]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp + ecx*4 - 0xe94], eax
test eax, eax
je 0x479359
mov ecx, dword [ebx]
lea edx, [esi + esi]
push edx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
inc dword [ebp - 0x28]
mov dword [ebx], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.00479e00
jmp 0x479035
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x479035
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x68]
push edx
push eax
call fcn.004a3190
add esp, 0xc
jmp 0x479035
cmp eax, 0x1f
jne 0x477eb8
cmp dword [ebx + 0xc], 0
je 0x4792c2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4792c2
dec eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + eax*4 - 0xa94]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
jmp 0x47903f
cmp dword [ebp - 0x1c], 0
je 0x4777f4
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp + edx*4 - 0xa98]
dec edx
cmp dword [edi + 8], 8
mov dword [ebp - 0x1c], edx
jge 0x4777f4
cmp eax, 0x20
jne 0x477f15
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4777f4
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [edi]
mov dword [ebx], edx
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [edi + 8]
mov dword [ebx + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [ebx + 0xc], edx
mov dword [edi + 8], 1
jmp 0x479035
add eax, 0xffffffee
cmp eax, 0x27
ja case.0x477f24.20
movzx eax, byte [eax + 0x47973c]
jmp dword [eax*4 + 0x479734]
mov eax, edi
call fcn.0046edf0
mov edx, dword [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 0x94], esi
jmp 0x477f45
mov esi, dword [ebp - 0x94]
mov eax, dword [ebx + 8]
lea ecx, [eax - 9]
mov dword [ebp - 0x54], 0
cmp ecx, 0x34
ja case.0x477f62.11
movzx ecx, byte [ecx + 0x479780]
jmp dword [ecx*4 + 0x479764]
mov eax, esi
mov esi, edi
call fcn.0046ecd0
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], 1
jmp 0x479035
mov eax, esi
mov esi, edi
call fcn.0046ecd0
test eax, eax
jne 0x478964
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
jmp 0x479035
cmp esi, 1
jne 0x477fcd
push esi
mov ecx, edi
call fcn.0046eee0
add esp, 4
neg eax
adc edx, 0
neg edx
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
jmp 0x479035
cmp esi, 2
jne 0x4781b4
push 1
push 0
mov eax, edi
call fcn.0046ef70
fchs
fstp qword [ebx]
add esp, 8
mov dword [ebx + 8], esi
jmp 0x479035
mov ecx, dword [edi + 8]
xor edx, edx
cmp eax, 0x3c
setge dl
mov dword [ebp - 0x30], edx
cmp ecx, 4
jne 0x4781b4
test esi, esi
je 0x4780bb
cmp eax, 9
je 0x478020
mov dword [ebp - 0x38], 0xffffffff
cmp eax, 0x3c
jne 0x478027
mov dword [ebp - 0x38], 1
push 1
cmp esi, 1
jne 0x478052
mov ecx, edi
call fcn.0046eee0
mov dword [ebx], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 4], edx
cdq
add esp, 4
add eax, dword [ebx]
adc edx, dword [ebx + 4]
push edx
push eax
mov eax, dword [edi]
push eax
call fcn.00426a00
jmp 0x47806b
push 0
mov eax, edi
call fcn.0046ef70
fst qword [ebx]
fiadd dword [ebp - 0x38]
mov ecx, dword [edi]
fstp qword [esp]
push ecx
call fcn.00426a30
cmp dword [ebp - 0x30], 0
je 0x477fe8
mov edi, dword [edi]
mov al, byte [edi + 0x17]
test al, al
jne 0x478084
mov edx, dword [edi + 0xc]
mov al, byte [edx + 0x17]
cmp al, 1
jne 0x478096
mov dword [ebx], edi
mov dword [ebx + 8], 4
jmp 0x479035
cmp esi, 1
jne 0x4780ac
mov eax, dword [ebp - 0x38]
cdq
add dword [ebx], eax
mov dword [ebx + 8], esi
adc dword [ebx + 4], edx
jmp 0x479035
fild dword [ebp - 0x38]
mov dword [ebx + 8], esi
fadd qword [ebx]
fstp qword [ebx]
jmp 0x479035
cmp ecx, 4
jne 0x4781b4
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x4780d1
mov ecx, dword [eax + 0xc]
jmp 0x4780d3
mov ecx, eax
test byte [ecx + 0x15], 4
je 0x4780e4
push eax
mov ecx, 0x4ea1d0
call fcn.0044a460
mov ecx, dword [edi]
call fcn.004269a0
cmp dword [ebp - 0x30], 0
je 0x4781b4
mov edi, dword [edi]
mov al, byte [edi + 0x17]
test al, al
jne 0x478104
mov eax, dword [edi + 0xc]
mov al, byte [eax + 0x17]
cmp al, 1
jne 0x4781b4
mov dword [ebx], edi
mov dword [ebx + 8], 4
jmp 0x479035
mov eax, dword [edi + 8]
cmp eax, 4
jne 0x478178
mov eax, dword [edi]
cmp byte [eax + 0x17], 0
jne 0x47812f
mov ecx, dword [eax + 0xc]
jmp 0x478131
mov ecx, eax
test byte [ecx + 0x15], 2
je 0x478156
mov dword [ebx + 8], 1
mov edi, dword [edi]
cmp byte [edi + 0x17], 0
jne 0x478149
mov edi, dword [edi + 0xc]
mov eax, dword [edi]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x479035
call fcn.00403e20
push 0
mov dword [ebx + 8], 1
mov ecx, dword [edi]
push 1
call fcn.00401220
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x479035
cmp eax, 6
jne 0x478191
mov dword [ebx + 8], 1
mov eax, dword [edi]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x479035
test eax, eax
jne 0x4781b4
mov ecx, dword [edi]
cmp word [ecx], ax
je 0x4781b4
mov dword [ebx + 8], 1
mov eax, dword [edi]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x479035
test esi, esi
jne 0x4781c6
mov dword [ebx], 0x4bd2c4
mov dword [ebx + 8], 0
jmp 0x479035
xor edx, edx
cmp esi, 1
sete dl
mov ecx, edi
push edx
call fcn.0046eee0
add esp, 4
cmp dword [ebx + 8], 0x38
jne 0x478216
test edx, edx
ja 0x478201
jb 0x4781ea
cmp eax, 0xffffffff
ja 0x478201
not eax
mov dword [ebx + 4], 0
mov dword [ebx], eax
mov dword [ebx + 8], 1
jmp 0x479035
not eax
not edx
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov dword [ebx + 8], 1
jmp 0x479035
cmp eax, 0x1000
jae 0x478231
xor eax, eax
cdq
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov dword [ebx + 8], 1
jmp 0x479035
movzx eax, byte [eax]
cdq
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov dword [ebx + 8], 1
jmp 0x479035
test edx, edx
je 0x4777f4
dec edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + edx*4 - 0xa94]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x44], edx
cmp ecx, 8
jge 0x4777f4
cmp eax, 0x12
jne 0x4782a5
mov eax, dword [edx]
mov dword [ebx], eax
mov ecx, dword [edx + 4]
mov dword [ebx + 4], ecx
mov eax, dword [edx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0xc], ecx
cmp dword [ebx + 8], 6
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
jne 0x479035
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
jmp 0x479035
cmp eax, 0x1e
jg 0x4783a5
cmp eax, 0x13
jl 0x4783a5
cmp ecx, 4
je 0x4782ce
mov dword [ebx], 0x4bd2c4
mov dword [ebx + 8], 0
jmp 0x479035
add eax, 0xffffffed
cmp eax, 0xb
ja case.default.0x4782da
jmp dword [eax*4 + 0x4797b8]
mov esi, dword [ebp - 0x44]
mov ebx, dword [esi]
mov eax, edi
call fcn.004a2130
test eax, eax
je 0x479559
mov ecx, dword [esi]
mov al, byte [ecx + 0x17]
test al, al
jne 0x478304
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
mov ebx, dword [ebp - 0x50]
cmp al, 2
mov eax, ebx
jne 0x478331
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
jmp 0x479035
mov dword [eax], ecx
mov dword [eax + 8], 4
jmp 0x479035
mov dword [ebx + 8], 0x31
jmp case.default.0x4782da
mov dword [ebx + 8], 0x32
jmp case.default.0x4782da
mov dword [ebx + 8], 0x33
jmp case.default.0x4782da
mov dword [ebx + 8], 0x34
jmp case.default.0x4782da
mov dword [ebx + 8], 0x35
jmp case.default.0x4782da
mov dword [ebx + 8], 0x2c
jmp case.default.0x4782da
mov dword [ebx + 8], 0x2d
jmp case.default.0x4782da
mov dword [ebx + 8], 0x2e
jmp case.default.0x4782da
mov dword [ebx + 8], 0x2f
jmp case.default.0x4782da
mov dword [ebx + 8], 0x30
jmp case.default.0x4782da
mov dword [ebx + 8], 0x2b
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
cmp dword [ebx + 8], 0x2b
je 0x478918
test esi, esi
je 0x478918
mov eax, dword [ebp - 0x44]
call fcn.0046edf0
mov dword [ebp - 0x38], eax
test eax, eax
je 0x478918
cmp esi, 1
jne 0x4783d9
cmp eax, esi
jne 0x4783d9
cmp dword [ebx + 8], 0x34
jne 0x4783ee
mov eax, dword [ebx + 8]
cmp eax, 0x30
jg 0x4786c1
cmp eax, 0x2c
jl 0x4786c1
xor ecx, ecx
cmp esi, 1
sete cl
push ecx
mov ecx, edi
call fcn.0046eee0
mov ecx, dword [ebp - 0x44]
mov esi, edx
xor edx, edx
add esp, 4
cmp dword [ebp - 0x38], 1
mov edi, eax
sete dl
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], esi
push edx
call fcn.0046eee0
mov ecx, dword [ebx + 8]
add ecx, 0xffffffdc
add esp, 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x20], 1
cmp ecx, 0x17
ja case.0x47843f.43
jmp dword [ecx*4 + 0x4797e8]
add eax, edi
adc edx, esi
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
sub eax, edi
sbb edx, esi
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
push esi
push edi
push edx
push eax
call fcn.004b9de0
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
cmp eax, edi
jne 0x4784a6
cmp edx, esi
jne 0x4784a6
mov edx, dword [ebp - 0x20]
mov eax, 1
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
mov edx, dword [ebp - 0x20]
xor eax, eax
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
cmp eax, edi
jne 0x4784c2
cmp edx, esi
je 0x4784a6
mov edx, dword [ebp - 0x20]
mov eax, 1
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
cmp edx, esi
jl 0x4784a6
jg 0x4784e3
cmp eax, edi
jbe 0x4784a6
mov edx, dword [ebp - 0x20]
mov eax, 1
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
cmp edx, esi
jg 0x4784a6
jl 0x478504
cmp eax, edi
jae 0x4784a6
mov edx, dword [ebp - 0x20]
mov eax, 1
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
cmp edx, esi
jl 0x4784a6
jg 0x478525
cmp eax, edi
jb 0x4784a6
mov edx, dword [ebp - 0x20]
mov eax, 1
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
cmp edx, esi
jg 0x4784a6
jl 0x47854e
cmp eax, edi
ja 0x4784a6
mov edx, dword [ebp - 0x20]
mov eax, 1
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
and eax, edi
and edx, esi
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
or eax, edi
or edx, esi
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
xor eax, edi
xor edx, esi
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
mov ecx, edi
call fcn.004b9fa0
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
mov ecx, edi
call fcn.004b9f70
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
mov ecx, edi
or ecx, dword [ebp - 0x78]
jne 0x4785e9
mov edx, ecx
mov dword [ebx], 0x4bd2c4
mov dword [ebp - 0x20], ecx
mov dword [ebx + 8], edx
jmp 0x478ffd
mov ecx, dword [ebp - 0x78]
push ecx
push edi
push edx
push eax
call fcn.004b9cd0
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 8], edx
jmp 0x478ffd
mov ecx, eax
or ecx, edx
jne 0x47862d
test esi, esi
jg 0x478683
jl 0x478615
test edi, edi
jae 0x478683
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebx], 0x4bd2c4
mov dword [ebx + 8], edx
jmp 0x478ffd
test edx, edx
jg 0x478683
jl 0x478637
test eax, eax
jae 0x478683
neg eax
adc edx, 0
neg edx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
fild qword [ebp - 0x7c]
sub esp, 0x10
fstp qword [esp + 8]
fild qword [ebp - 0x84]
fstp qword [esp]
call fcn.0044b3f0
cmp dword [ebp - 0x30], 0
fst qword [ebx]
je 0x47868c
push 0
push 2
push esi
push edi
call fcn.004b9eb0
or eax, edx
je 0x47868c
fchs
fstp qword [ebx]
jmp 0x47868e
mov dword [ebp - 0x30], 0
jmp 0x47864e
fstp st(0)
test esi, esi
jg 0x4786aa
jl 0x478698
test edi, edi
jae 0x4786aa
mov dword [ebp - 0x20], 2
mov edx, dword [ebp - 0x20]
mov dword [ebx + 8], edx
jmp 0x478ffd
fld qword [ebx]
call fcn.004b9c56
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov edx, dword [ebp - 0x20]
mov dword [ebx + 8], edx
jmp 0x478ffd
xor eax, eax
cmp esi, 2
sete al
push eax
push 1
mov eax, edi
call fcn.0046ef70
fstp qword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
xor ecx, ecx
cmp dword [ebp - 0x38], 2
sete cl
push ecx
push 1
call fcn.0046ef70
fst qword [ebp - 0x3c]
mov ecx, dword [ebx + 8]
add esp, 0x10
cmp ecx, 0x24
jl 0x478702
mov edi, 1
cmp ecx, 0x2a
jle 0x478707
mov edi, 2
lea eax, [ecx - 0x24]
cmp eax, 0x17
ja case.0x478716.43
movzx edx, byte [eax + 0x479878]
jmp dword [edx*4 + 0x479848]
fadd qword [ebp - 0x34]
mov dword [ebx + 8], edi
fstp qword [ebx]
jmp 0x478ffd
fsub qword [ebp - 0x34]
mov dword [ebx + 8], edi
fstp qword [ebx]
jmp 0x478ffd
fmul qword [ebp - 0x34]
mov dword [ebx + 8], edi
fstp qword [ebx]
jmp 0x478ffd
fld qword [ebp - 0x34]
fld st(0)
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x478768
fstp st(1)
mov dword [ebx], 0x4bd2c4
xor edi, edi
fstp st(0)
mov dword [ebx + 8], edi
jmp 0x478ffd
fdivp st(1)
fst qword [ebx]
cmp ecx, 0x35
jne case.0x478716.43
sub esp, 8
fstp qword [esp]
call fcn.0044b450
fstp qword [ebx]
mov dword [ebx + 8], edi
jmp 0x478ffd
fld qword [ebp - 0x34]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4787a6
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
jmp 0x478ffd
xor eax, eax
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
jmp 0x478ffd
fld qword [ebp - 0x34]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4787a6
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
jmp 0x478ffd
fcomp qword [ebp - 0x34]
fnstsw ax
test ah, 0x41
jne 0x4787a6
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
jmp 0x478ffd
fcomp qword [ebp - 0x34]
fnstsw ax
test ah, 5
jp 0x4787a6
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
jmp 0x478ffd
fcomp qword [ebp - 0x34]
fnstsw ax
test ah, 1
jne 0x4787a6
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
jmp 0x478ffd
fcomp qword [ebp - 0x34]
fnstsw ax
test ah, 0x41
jp 0x4787a6
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
jmp 0x478ffd
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x478865
mov esi, 1
jmp 0x478867
xor esi, esi
fld st(1)
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x478890
fcomp qword [ebp - 0x34]
fnstsw ax
test ah, 0x41
jne 0x478892
fstp st(0)
xor edi, edi
mov dword [ebx], 0x4bd2c4
mov dword [ebx + 8], edi
jmp 0x478ffd
fstp st(0)
test esi, esi
je 0x4788bc
fstp st(0)
sub esp, 0x10
fld1
fstp qword [esp + 8]
fld qword [ebp - 0x34]
fstp qword [esp]
call fcn.0044b480
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x478880
fld qword [ebp - 0x3c]
fchs
fld qword [ebp - 0x34]
sub esp, 0x10
fstp qword [esp + 8]
fstp qword [esp]
call fcn.0044b3f0
fstp qword [ebx]
test esi, esi
je 0x478760
fld qword [0x4de848]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x34]
fstp qword [esp]
call fcn.0044b480
sub esp, 8
fstp qword [esp]
call fcn.0044b3e0
fld1
fucompp
fnstsw ax
test ah, 0x44
jp 0x478760
fld qword [ebx]
mov dword [ebx + 8], edi
fchs
fstp qword [ebx]
jmp 0x478ffd
mov eax, dword [ebx + 8]
add eax, 0xffffffdc
cmp eax, 2
ja 0x478979
mov ecx, edi
call fcn.0046f1a0
mov ecx, dword [ebp - 0x44]
mov esi, eax
call fcn.0046f1a0
test esi, esi
jne 0x47893c
test eax, eax
je 0x478979
xor ecx, ecx
cmp esi, eax
sete cl
xor edx, edx
cmp dword [ebx + 8], 0x26
setne dl
cmp edx, ecx
jne 0x478964
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
jmp 0x479035
xor eax, eax
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 1
jmp 0x479035
lea ecx, [ebp - 0x1094]
mov eax, edi
call fcn.0046f030
mov esi, eax
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x294]
call fcn.0046f030
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 8]
add eax, 0xffffffdc
mov dword [ebp - 0x20], 1
cmp eax, 7
ja case.default.0x4789af
jmp dword [eax*4 + 0x479890]
mov eax, dword [0x4e4b24]
cmp byte [eax + 0xf2], 0
push esi
jne 0x4789d4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x4789de
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4789f3
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x478ff7
xor eax, eax
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x478ff7
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x478a2a
test cx, cx
je 0x478a26
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x478a2a
add eax, 4
add esi, 4
test cx, cx
jne 0x478a04
xor eax, eax
jmp 0x478a2f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4789f3
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x478ff7
mov eax, dword [0x4e4b24]
mov al, byte [eax + 0xf2]
test al, al
jne 0x478a75
mov ecx, dword [ebp - 0x14]
push esi
push ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
xor ecx, ecx
add esp, 8
test eax, eax
setne cl
mov eax, ecx
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x478ff7
cmp al, 2
jne 0x478a98
mov edx, dword [ebp - 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x478ff7
mov eax, dword [ebp - 0x14]
jmp 0x478aa0
mov cx, word [eax]
cmp cx, word [esi]
jne 0x478ad8
test cx, cx
je 0x478ac2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x478ad8
add eax, 4
add esi, 4
test cx, cx
jne 0x478aa0
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x478ff7
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x478ff7
mov edx, dword [0x4e4b24]
mov al, byte [edx + 0xf2]
test al, al
jne 0x478b11
mov eax, dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x478b50
cmp al, 2
jne 0x478b22
mov ecx, dword [ebp - 0x14]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x478b50
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x478b4b
test cx, cx
je 0x478b47
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x478b4b
add eax, 4
add esi, 4
test cx, cx
jne 0x478b25
xor eax, eax
jmp 0x478b50
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jle 0x4789f3
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x478ff7
mov edx, dword [0x4e4b24]
mov al, byte [edx + 0xf2]
test al, al
jne 0x478b89
mov eax, dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x478bcb
cmp al, 2
jne 0x478b9a
mov ecx, dword [ebp - 0x14]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x478bcb
mov eax, dword [ebp - 0x14]
lea ecx, [ecx]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x478bc6
test cx, cx
je 0x478bc2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x478bc6
add eax, 4
add esi, 4
test cx, cx
jne 0x478ba0
xor eax, eax
jmp 0x478bcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jns 0x4789f3
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x478ff7
mov edx, dword [0x4e4b24]
mov al, byte [edx + 0xf2]
test al, al
jne 0x478c04
mov eax, dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x478c43
cmp al, 2
jne 0x478c15
mov ecx, dword [ebp - 0x14]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x478c43
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x478c3e
test cx, cx
je 0x478c3a
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x478c3e
add eax, 4
add esi, 4
test cx, cx
jne 0x478c18
xor eax, eax
jmp 0x478c43
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, 0xffffffff
jle 0x4789f3
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x478ff7
mov edx, dword [0x4e4b24]
mov al, byte [edx + 0xf2]
test al, al
jne 0x478c7d
mov eax, dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x478cbc
cmp al, 2
jne 0x478c8e
mov ecx, dword [ebp - 0x14]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x478cbc
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x478cb7
test cx, cx
je 0x478cb3
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x478cb7
add eax, 4
add esi, 4
test cx, cx
jne 0x478c91
xor eax, eax
jmp 0x478cbc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, 1
jge 0x4789f3
mov eax, 1
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x478ff7
cmp dword [edi + 8], 4
jne 0x478ce5
mov eax, dword [edi]
call fcn.00426d10
jmp 0x478cff
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478cf0
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x38], eax
je 0x478d29
mov edx, eax
mov eax, dword [ebp - 0x54]
push edx
push esi
call fcn.004a2e90
test eax, eax
je 0x478d29
mov eax, dword [ebp - 0x54]
mov dword [ebx], eax
mov dword [ebx + 8], 4
jmp 0x479035
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 8], 4
jne 0x478d3d
mov edx, ecx
mov eax, dword [edx]
call fcn.00426d10
jmp 0x478d52
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478d43
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x20], edx
jne 0x478f12
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x478d8b
cmp dword [ebp - 0x1c], 0
jne 0x478d8b
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x18], 0x41
jne 0x478d8b
mov dword [ebp - 0x30], 1
jmp 0x478dd5
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x18], 0x13
jne 0x478f12
cmp dword [ebp - 0x1c], 0
je 0x478f12
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0xa98]
cmp dword [eax + 8], 4
jne 0x478f12
mov eax, dword [eax]
mov cl, byte [eax + 0x17]
test cl, cl
jne 0x478dc5
mov ecx, dword [eax + 0xc]
mov cl, byte [ecx + 0x17]
cmp cl, 1
jne 0x478f12
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x478f12
push 0
push 0
mov ecx, eax
call fcn.00401220
cmp eax, 0x4e9868
jne 0x478df4
xor eax, eax
cmp eax, dword [ebp - 0x14]
jne 0x478e45
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
push edx
push esi
call fcn.004a2e90
test eax, eax
je 0x478f12
cmp dword [ebp - 0x30], 0
jne case.0x479458.3
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0xa98]
mov edx, dword [ecx]
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebx], edx
mov dword [ebx + 8], 4
jmp 0x479035
cmp eax, esi
je 0x478f12
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
push 1
push 0
dec eax
push eax
push 0
push ecx
call fcn.004a2810
test eax, eax
je 0x479559
mov ecx, dword [ebp - 0x4c]
push 0
push 1
call fcn.00401220
cmp dword [ebp - 0x18], 0
mov edi, eax
je 0x478e91
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea eax, [edx + edx]
push eax
push ecx
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
lea edx, [edi + ecx*2]
push esi
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp byte [eax + 0x17], 0
jne 0x478eb9
mov ecx, eax
mov eax, dword [ecx + 0xc]
jmp 0x478ebc
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x17], 2
jne 0x478ed7
cmp dword [0x4ea180], 0
je 0x478ed7
mov ecx, 0x4ea174
call fcn.00405160
jmp 0x478edb
and byte [eax + 0x15], 0x86
cmp dword [ebp - 0x30], 0
jne case.0x479458.3
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x1c]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebx + 0xc], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + eax*4 - 0xa94]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov dword [ebx + 8], 4
jmp 0x479035
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp + 0x1c]
mov edx, eax
sub edx, dword [ecx]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx]
sar edx, 1
sub ecx, edx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x30]
ja 0x478f3a
mov dword [ebx], eax
lea eax, [eax + ecx*2]
mov dword [ebp - 0x60], eax
jmp 0x478f95
cmp ecx, 0x1001
jae 0x478f61
cmp dword [ebp - 0x48], 0x9c40
jae 0x478f61
mov eax, dword [ebp - 0x20]
add eax, eax
call fcn.004b9db0
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x48], ecx
mov eax, esp
mov dword [ebx], eax
jmp 0x478f95
cmp dword [ebp - 0x28], 0x100
je 0x479545
mov edx, dword [ebp - 0x20]
lea eax, [edx + edx]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp + ecx*4 - 0xe94], eax
mov dword [ebx], eax
test eax, eax
je 0x479545
inc dword [ebp - 0x28]
cmp dword [ebp - 0x18], 0
je 0x478fb1
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea eax, [edx + edx]
mov edx, dword [ebx]
push eax
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov edx, dword [ebx]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x18]
push ecx
lea ecx, [edx + eax*2]
push esi
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x44]
add esp, 0xc
cmp dword [edx + 8], 0
je 0x478ff0
cmp dword [edi + 8], 0
je 0x478ff0
mov dword [ebp - 0x20], 5
mov dword [ebx + 4], 0
jmp 0x478ff7
mov dword [ebx], 0x4bd2c4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
cmp dword [ebp - 0x54], 0
je 0x479035
mov eax, ebx
mov ebx, dword [ebp - 0x54]
call fcn.004a2130
test eax, eax
je 0x479559
mov al, byte [ebx + 0x17]
test al, al
jne 0x479022
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
je 0x479032
mov eax, dword [ebp - 0x50]
mov dword [eax], ebx
mov dword [eax + 8], 4
mov ebx, dword [ebp - 0x50]
cmp dword [ebx + 0xc], 0
je 0x479279
mov eax, dword [ebx + 8]
lea ecx, [eax - 1]
cmp ecx, 4
ja case.0x47904e.3
jmp dword [ecx*4 + 0x4798b0]
mov esi, dword [ebx]
cmp byte [esi + 0x17], 0
jne 0x479060
mov esi, dword [esi + 0xc]
movzx eax, byte [esi + 0x15]
and eax, 0x70
cmp eax, 0x10
je 0x4790b1
cmp eax, 0x20
je 0x4790a4
cmp eax, 0x40
je case.0x47904e.3
push 0
push 1
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.00401220
call fcn.0049e420
add esp, 0x10
test eax, eax
jne case.0x47904e.1
mov cl, byte [esi + 0x15]
test cl, cl
js case.0x47904e.1
or cl, 0x40
mov byte [esi + 0x15], cl
jmp case.0x47904e.1
mov eax, 2
jmp case.0x47904e.1
cmp dword [ebx + 4], 0
je 0x4790b8
mov eax, 1
jmp case.0x47904e.1
push 0
push 1
push 0
push 1
xor ecx, ecx
mov eax, ebx
call fcn.0046f030
call fcn.0049e420
add esp, 0x10
jmp case.0x47904e.1
xor eax, eax
dec eax
je 0x4791bb
dec eax
mov eax, dword [ebx + 8]
je 0x47911a
cmp eax, 6
je 0x47926f
cmp eax, 4
jne 0x479105
mov eax, dword [ebx]
cmp byte [eax + 0x17], 0
jne 0x4790fb
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x47926f
xor ecx, ecx
mov eax, ebx
call fcn.0046f030
xor edx, edx
cmp word [eax], dx
setne dl
mov esi, edx
jmp 0x479162
dec eax
cmp eax, 5
ja case.0x479120.3
jmp dword [eax*4 + 0x4798c4]
fild qword [ebx]
jmp 0x479151
fld qword [ebx]
jmp 0x479151
mov eax, dword [ebx]
push 1
call fcn.00426b60
jmp 0x479151
mov eax, dword [ebx + 4]
test eax, eax
je case.0x479120.3
fild qword [eax]
jmp 0x479151
mov eax, dword [ebx]
push eax
call dword [sym.imp.MSVCR100.dll__wtof]
add esp, 4
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x47926f
xor esi, esi
cmp dword [ebx + 8], 6
jne 0x479172
mov eax, dword [ebx]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 8], 0x20
je 0x4792bb
mov edi, 0x20
xor edx, edx
cmp dword [ecx + 8], 0x21
sete dl
cmp esi, edx
jne 0x4792c2
mov dword [ebp - 0x24], ecx
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x4791a4
cmp dword [ecx + 8], edi
jne 0x479184
mov eax, esi
cdq
mov dword [ebx + 8], 1
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], ecx
jmp 0x479035
mov eax, dword [ebx + 8]
dec eax
cmp eax, 5
ja case.0x4791c4.3
jmp dword [eax*4 + 0x4798dc]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
jmp 0x479267
mov ecx, dword [ebx + 4]
test ecx, ecx
je case.0x4791c4.3
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
jmp 0x479267
fld qword [ebx]
call fcn.004b9c56
jmp 0x479267
mov eax, dword [ebx]
push 1
call fcn.00426ad0
jmp 0x479267
mov esi, dword [ebx]
mov eax, esi
mov edi, edi
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x47920d
cmp ecx, 9
jne 0x479212
add eax, 2
jmp 0x479200
movzx ecx, word [eax]
test cx, cx
je 0x47925d
cmp ecx, 0x2d
je 0x479224
cmp ecx, 0x2b
jne 0x479227
add eax, 2
cmp word [eax], 0x30
jne 0x47925d
movzx ecx, word [eax + 2]
cmp ecx, 0x78
je 0x47923b
cmp ecx, 0x58
jne 0x47925d
movzx ecx, word [eax + 4]
push ecx
call dword [sym.imp.MSVCR100.dll_isxdigit]
add esp, 4
test eax, eax
je 0x47925d
push 0x10
push 0
push esi
call dword [sym.imp.MSVCR100.dll__wcstoi64]
add esp, 0xc
jmp 0x479267
push esi
call dword [sym.imp.MSVCR100.dll__wtoi64]
add esp, 4
or eax, edx
je case.0x4791c4.6
mov esi, 1
jmp 0x479162
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x1c]
cmp esi, edi
jle 0x47929f
mov eax, dword [ebp + esi*4 - 0xa98]
dec esi
cmp dword [eax + 8], 6
jne 0x47929b
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, edi
jg 0x479283
mov esi, dword [ebp - 0x24]
mov dword [ebp + edi*4 - 0xa94], ebx
mov ebx, dword [ebp + 0x18]
inc edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x5c], edi
add esi, 0x10
jmp 0x477587
test esi, esi
jne 0x4792c2
mov dword [ebp - 0x24], ecx
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp + 0x18]
add esi, 0x10
jmp 0x477587
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x18]
push edx
jmp 0x47954a
cmp dword [esi], 1
je 0x4792e3
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
cmp eax, edi
je case.0x479458.3
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x68]
push edx
push eax
call fcn.004a3190
add esp, 0xc
jmp case.0x479458.3
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x47931c
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.00479e00
jmp case.0x479458.3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x4bd2fc
mov ecx, edi
call fcn.00449ae0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.00479e00
jmp 0x479559
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 8]
push eax
push 0
push 0x4bd2fc
call fcn.00449ae0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.00479e00
jmp 0x479559
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
cmp cl, 3
je case.0x479458.3
cmp dword [ebp - 0x1c], 1
jne 0x4777f4
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0xa94]
mov esi, eax
test edx, edx
je 0x4793be
mov ebx, edx
call fcn.004a2130
test eax, eax
je 0x479559
jmp case.0x479458.3
cmp cl, 0x11
je 0x479639
cmp cl, 0x6b
je 0x479639
cmp cl, 0x6c
je 0x479639
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x479447
mov ecx, dword [eax + 8]
cmp ecx, 1
je 0x479430
cmp ecx, 2
je 0x479430
cmp ecx, 6
je 0x479430
cmp ecx, 4
jne 0x479447
mov ecx, dword [eax]
cmp byte [ecx + 0x17], 0
jne 0x479402
mov ecx, dword [ecx + 0xc]
test byte [ecx + 0x15], 2
je 0x479447
mov dword [edx + 8], 6
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x47941a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [edx], eax
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4bd2c4
jmp 0x4796af
mov dword [edx + 8], ecx
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov eax, 0x4bd2c4
jmp 0x4796af
mov ecx, dword [ebx]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax + 8]
cmp ecx, 6
ja case.0x479458.3
jmp dword [ecx*4 + 0x4798f4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [ebp - 0x40]
push edx
push eax
call fcn.00401050
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479474
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
add dword [ebx], ecx
jmp case.0x479458.3
mov edx, dword [0x4e4b24]
fld qword [eax]
mov edi, dword [ebp - 0x40]
sub esp, 8
add edx, 0x74
fstp qword [esp]
push edx
mov esi, 0x100
call fcn.0049e5c0
lea ecx, [eax + eax + 2]
mov eax, dword [ebp + 0x18]
add esp, 0xc
add dword [eax], ecx
jmp case.0x479458.3
cmp ecx, 4
jne 0x4794dc
mov ecx, dword [eax]
push 0
push 1
call fcn.00401220
mov edi, eax
mov dword [ebp + 0x14], eax
mov eax, dword [esi]
call fcn.00426d10
jmp 0x4794f5
mov edi, dword [eax]
mov eax, edi
mov dword [ebp + 0x14], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4794e6
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 0xc]
lea esi, [eax + 1]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add edx, edx
movzx eax, word [ecx + edx*8 + 2]
mov edx, 0xff
mov dword [ebp - 0x20], esi
cmp ax, dx
jae 0x479517
mov eax, edx
mov ecx, dword [ebp + 0x28]
lea eax, [eax + ecx + 1]
cmp esi, eax
jbe 0x47961d
mov edx, dword [ebp + 0x20]
mov ebx, dword [edx]
sub ebx, eax
add ebx, esi
lea eax, [ebx + ebx]
push eax
mov dword [ebp + 0x28], ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x47956e
push 0x4bd2c4
mov ecx, dword [ebp + 8]
push 0
push 0x4bd2fc
call fcn.00449ae0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], 0
mov dword [ecx], 0
jmp case.0x479458.3
cmp ebx, 0x400000
jbe 0x47957c
inc dword [0x4e904c]
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov esi, dword [edx]
sub esi, eax
sar esi, 1
je 0x47959a
lea ecx, [esi + esi]
push ecx
push eax
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
lea eax, [edi + esi*2]
mov dword [edx], eax
lea edx, [ecx + ecx]
mov ecx, dword [ebp + 0x14]
push edx
push ecx
push eax
mov dword [ebp - 0x40], eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebx]
add esp, 0xc
push edx
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
add esp, 4
cmp eax, 0x400000
jbe 0x4795d7
dec dword [0x4e904c]
mov ecx, dword [ebx]
lea esi, [ecx + eax*2]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x479606
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + ecx*4]
mov edx, dword [ebx]
cmp eax, edx
jb 0x479600
cmp eax, esi
jae 0x479600
sub eax, edx
mov edx, dword [ebp + 0x24]
sar eax, 1
lea eax, [edi + eax*2]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x4795e3
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x20]
mov esi, dword [ebp - 0x20]
mov dword [ebx], edi
mov ebx, dword [ebp + 0x18]
mov dword [ecx], eax
lea eax, [esi + esi]
add dword [ebx], eax
jmp case.0x479458.3
mov eax, dword [ebx]
cmp eax, edi
je 0x479632
lea edx, [esi + esi]
push edx
push edi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
lea eax, [esi + esi]
add dword [ebx], eax
jmp case.0x479458.3
mov ecx, dword [eax + 8]
cmp ecx, 6
ja case.0x479645.3
jmp dword [ecx*4 + 0x479910]
mov edx, dword [eax]
or edx, dword [eax + 4]
jne case.0x479645.6
mov dword [ebp - 0x40], 0x4bd2c4
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x479682
mov edi, dword [sym.imp.MSVCR100.dll_free]
jmp 0x479670
mov ecx, dword [ebp + esi*4 - 0xe98]
dec esi
push ecx
call edi
add esp, 4
test esi, esi
jne 0x479670
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x4796ac
lea esp, [esp]
mov eax, dword [ebp + esi*4 - 0xa98]
dec esi
cmp dword [eax + 8], 6
jne 0x4796a8
mov eax, dword [eax]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test esi, esi
jne 0x479690
mov eax, dword [ebp - 0x40]
lea esp, [ebp - 0x10a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
fld qword [eax]
fldz
fucompp
fnstsw ax
test ah, 0x44
jp case.0x479645.6
jmp case.0x479458.6
mov ecx, dword [eax + 4]
test ecx, ecx
je case.0x479645.0
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jmp 0x479651
mov eax, dword [eax]
call fcn.0046ebf0
jmp 0x4796fd
mov esi, dword [eax]
call fcn.0046ec50
jmp 0x4796fd
mov eax, dword [ebp + 8]
test eax, eax
je case.0x479458.6
mov dword [ebp - 0x40], 0x4bf81c
jmp case.0x479458.3