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

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
xor eax, eax
push esi
push edi
mov edi, dword [0x639300]
xor bl, bl
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov al, byte [edi + 0x2e3]
mov byte [esp + 0x14], al
mov byte [esp + 0x3c], bl
cmp byte [0x4f6cc3], bl
je 0x4045c8
mov byte [esp + 0x3c], 4
mov bl, byte [esp + 0x3c]
cmp byte [0x4f6cc5], 0
je 0x4045d8
or bl, 8
mov byte [esp + 0x3c], bl
cmp byte [0x4f6cc0], 0
je 0x4045e8
or bl, 1
mov byte [esp + 0x3c], bl
cmp byte [0x4f6cc8], 0
je 0x4045f8
or bl, 2
mov byte [esp + 0x3c], bl
cmp byte [0x4f6c40], 0
je 0x404608
or bl, 1
mov byte [esp + 0x3c], bl
cmp byte [0x4f6c48], 0
je 0x404618
or bl, 2
mov byte [esp + 0x3c], bl
cmp byte [0x4f6c43], 0
je 0x404628
or bl, 4
mov byte [esp + 0x3c], bl
cmp byte [0x4f6c45], 0
je 0x404638
or bl, 8
mov byte [esp + 0x3c], bl
cmp byte [0x4f6c41], 0
je 0x404648
or bl, 9
mov byte [esp + 0x3c], bl
cmp byte [0x4f6c49], 0
je 0x404658
or bl, 0xa
mov byte [esp + 0x3c], bl
cmp byte [0x4f6c47], 0
je 0x404668
or bl, 6
mov byte [esp + 0x3c], bl
cmp byte [0x4f6c3f], 0
je 0x404678
or bl, 5
mov byte [esp + 0x3c], bl
test bl, bl
je 0x404681
call fcn.00428fd0
movzx eax, bl
dec eax
cmp eax, 9
ja case.0x40468a.3
jmp dword [eax*4 + 0x405778]
mov byte [esp + 0x14], 0
jmp case.0x40468a.3
mov byte [esp + 0x14], 1
jmp case.0x40468a.3
mov byte [esp + 0x14], 2
jmp case.0x40468a.3
mov byte [esp + 0x14], 3
jmp case.0x40468a.3
mov byte [esp + 0x14], 4
jmp case.0x40468a.3
mov byte [esp + 0x14], 5
jmp case.0x40468a.3
mov byte [esp + 0x14], 6
jmp case.0x40468a.3
mov byte [esp + 0x14], 7
mov esi, dword [ebp + 0x42718]
mov bl, byte [ebp + 0x42750]
xor edi, edi
cmp esi, edi
je 0x404822
mov al, byte [ebp + 0x4273a]
test al, al
jne 0x404716
mov ecx, dword [ebp + 0x43300]
mov dword [ebp + 0x43318], ecx
movsx ecx, word [ecx]
mov edx, dword [ebp + 0x43318]
sar ecx, 1
neg ecx
mov dword [ebp + 0x4272c], ecx
movsx ecx, word [edx + 2]
sar ecx, 1
neg ecx
mov dword [ebp + 0x42730], ecx
jmp 0x404741
cmp al, 1
jne 0x404741
mov ecx, dword [ebp + 0x43304]
mov dword [ebp + 0x43318], ecx
movsx edx, word [ecx]
sar edx, 1
neg edx
mov dword [ebp + 0x4272c], edx
movsx edx, word [ecx + 2]
sar edx, 1
neg edx
mov dword [ebp + 0x42730], edx
cmp byte [ebp + 0x1e0], 0
je 0x4047f3
mov cl, byte [ebp + 0x201]
cmp cl, 1
jbe 0x40478f
movzx edx, cl
mov ecx, dword [edx*4 + 0x516a18]
cmp byte [ecx + 0x2e1], 1
jbe 0x40477f
mov cl, byte [ecx + 0x4fd]
test cl, cl
je 0x4047bf
cmp cl, 0x10
jae 0x40477f
test bl, bl
je 0x4047bf
movzx eax, al
push eax
push edx
mov eax, esi
mov ecx, ebp
call fcn.0041bf90
jmp 0x4047bf
cmp byte [0x4f6c07], 0
je 0x4047a8
movzx ecx, al
push ecx
push edi
mov eax, esi
mov ecx, ebp
call fcn.0041bf90
jmp 0x4047bf
mov edi, 0x4db7bc
call fcn.004021e0
push eax
mov esi, ebp
call fcn.00441d90
add esp, 4
xor edi, edi
mov byte [esp + 0x3c], 0
mov byte [ebp + 0x1e0], 0
mov byte [ebp + 0x1e1], 0
mov dword [ebp + 0x42718], edi
mov byte [0x4f78e4], 0
mov byte [0x4f78e5], 0
mov byte [0x4f78e6], 0
mov dword [0x4f78f0], edi
cmp byte [ebp + 0x1e1], 0
je 0x404822
mov byte [esp + 0x3c], 0
mov dword [ebp + 0x42718], edi
mov byte [0x4f78e4], 0
mov byte [0x4f78e5], 0
mov byte [0x4f78e6], 0
mov dword [0x4f78f0], edi
mov cl, byte [ebp + 0x1e0]
test cl, cl
je 0x404864
mov al, byte [ebp + 0x201]
test al, al
je 0x404860
movzx edx, al
mov eax, dword [edx*4 + 0x516a18]
cmp byte [eax + 0x4dc], 2
jne 0x404860
cmp byte [0x4fa680], 0
jne 0x404860
mov byte [0x4fa680], 1
mov byte [ebp + 0x1de], 0
test cl, cl
jne 0x404871
cmp byte [ebp + 0x1e1], 0
je 0x4048f8
mov al, byte [ebp + 0x200]
mov byte [esp + 0x17], al
test al, al
je 0x4048f8
mov eax, dword [0x639300]
mov esi, dword [eax + 0x2a0]
mov edi, dword [eax + 0x2a4]
xor ecx, ecx
lea edx, [ebp + 0x238]
mov eax, dword [edx]
test eax, eax
je 0x4048ac
cmp dword [eax + 8], esi
jne 0x4048ac
cmp dword [eax + 0xc], edi
je 0x4049c5
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x404898
movzx edx, byte [esp + 0x14]
mov dword [esp + 0x28], edi
lea edi, [esp + 0x28]
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.00428ce0
test eax, eax
je 0x4048f8
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, ebp
call fcn.004404b0
movzx ecx, byte [esp + 0x17]
cmp eax, dword [ebp + ecx*4 + 0x238]
jne 0x4048f8
mov byte [esp + 0x16], 1
cmp byte [ebp + 0x1de], 0
je 0x404a4f
mov eax, dword [0x639300]
mov esi, dword [eax + 0x2a0]
mov eax, dword [eax + 0x2a4]
movzx edx, byte [esp + 0x14]
lea edi, [esp + 0x28]
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
call fcn.00428ce0
test eax, eax
je 0x40497e
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x40497e
mov ecx, dword [esp + 0x28]
test ecx, ecx
jl 0x40497e
mov edx, dword [0x639210]
movsx edx, word [edx + 4]
cmp eax, edx
jge 0x40497e
mov edx, dword [0x639210]
movsx edx, word [edx + 6]
cmp ecx, edx
jge 0x40497e
mov edx, dword [0x639210]
mov edx, dword [edx]
mov ecx, dword [edx + ecx*4]
lea eax, [eax + eax*2]
movzx eax, byte [ecx + eax*4]
test eax, eax
jne 0x404a31
mov al, byte [ebp + 0x201]
mov byte [esp + 0x17], al
test al, al
je 0x404a36
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x2c]
lea edi, [esp + 0x28]
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.00428ce0
test eax, eax
je 0x404a15
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x4049d6
xor eax, eax
jmp 0x404a0c
mov byte [esp + 0x16], 2
mov byte [ebp + 0x1de], 0
jmp 0x4048f8
mov ecx, dword [esp + 0x28]
test ecx, ecx
jge 0x4049e2
xor eax, eax
jmp 0x404a0c
mov edx, dword [0x639210]
movsx edi, word [edx + 4]
cmp eax, edi
jl 0x4049f4
xor eax, eax
jmp 0x404a0c
movsx edi, word [edx + 6]
cmp ecx, edi
jl 0x404a00
xor eax, eax
jmp 0x404a0c
mov edx, dword [edx]
mov ecx, dword [edx + ecx*4]
lea eax, [eax + eax*2]
movzx eax, byte [ecx + eax*4]
movzx edx, byte [esp + 0x17]
cmp eax, edx
je 0x404a29
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 8
mov dword [esp + 0x2c], eax
jl 0x404998
jmp 0x404a36
mov al, byte [esp + 0x2c]
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 1
cmp byte [0x4f6c15], 0
jne 0x404a48
cmp byte [0x4f6c95], 0
je 0x404a4f
mov byte [0x4f6c31], 1
xor ebx, ebx
lea edi, [ebx + 1]
cmp byte [0x680bc4], bl
jne 0x404a69
cmp byte [0x4f6c31], bl
je 0x404a69
mov byte [esp + 0x15], 1
cmp byte [ebp + 0x1df], 0
je 0x404ab0
cmp byte [0x4f6c15], 0
jne 0x404a84
cmp byte [0x4f6c95], 0
je 0x404ab0
mov eax, dword [ebp + 0x638]
cmp eax, ebx
je 0x404ab0
push ebx
push eax
push ebp
call fcn.0043ef30
test eax, eax
je 0x404ab0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x15], 0
mov byte [0x4fa680], 0
mov byte [esp + 0x16], 0
cmp byte [ebp + 0x1f3], 0
je 0x404b6c
cmp byte [ebp + 0x1e0], 0
je 0x404b24
mov ecx, dword [ebp + 0x640]
push ebx
push ecx
push ebp
call fcn.0043ef30
test eax, eax
je 0x404aee
mov byte [esp + 0x3c], 0
mov byte [esp + 0x15], 0
mov byte [0x4fa680], 0
mov byte [esp + 0x16], 0
mov byte [ebp + 0x1f3], 0
mov dword [ebp + 0x640], ebx
mov byte [ebp + 0x644], 0
mov byte [ebp + 0x645], 0
mov byte [0x4f78e4], 0
mov byte [0x4f78e5], 0
mov byte [0x4f78e6], 0
mov dword [0x4f78f0], ebx
cmp byte [ebp + 0x1e1], 0
jne 0x404b36
cmp byte [0x4f6bf9], 0
je 0x404b6c
mov byte [ebp + 0x1f3], 0
mov dword [ebp + 0x640], ebx
mov byte [ebp + 0x644], 0
mov byte [ebp + 0x645], 0
mov byte [0x4f78e4], 0
mov byte [0x4f78e5], 0
mov byte [0x4f78e6], 0
mov dword [0x4f78f0], ebx
cmp byte [ebp + 0x42758], 0
jne 0x404ba5
mov edx, dword [0x639300]
cmp byte [edx + 0x4ff], 0xb0
je 0x404ba5
cmp byte [ebp + 0x46e45], 0
jne 0x404bbf
cmp byte [ebp + 0x1f3], 0
jne 0x404bbf
mov esi, edx
mov al, byte [esi + 0xc]
cmp al, 6
je 0x404bbf
cmp al, 0xb
je 0x404bbf
jmp 0x404bdb
mov eax, dword [0x639300]
mov al, byte [eax + 0xc]
cmp al, 1
je 0x404bbf
cmp al, 2
je 0x404bbf
mov ecx, dword [0x639300]
mov byte [ecx + 0xc], 0
mov esi, dword [0x639300]
mov byte [esp + 0x3c], 0
mov byte [esp + 0x15], 0
mov byte [0x4fa680], 0
mov byte [esp + 0x16], 0
cmp byte [esi + 0x2e5], 0
je 0x404bf2
cmp byte [esp + 0x15], 0
je 0x404bf2
mov byte [esi + 0x2e5], 0
mov al, byte [esp + 0x16]
mov ecx, 0xf
test al, al
je 0x404c34
cmp al, 2
mov eax, ebp
jne 0x404c09
push 9
jmp 0x404c0f
movzx edx, byte [esp + 0x14]
push edx
call fcn.0041c090
mov byte [0x4f78e4], 0
mov byte [0x4f78e5], 0
mov byte [0x4f78e6], 0
mov dword [0x4f78f0], ebx
jmp case.0x40526a.3
cmp byte [0x4fa680], 0
je 0x404c69
movzx eax, byte [ebp + 0x201]
mov eax, dword [eax*4 + 0x516a18]
mov ecx, dword [eax + 0x2a4]
mov edx, dword [eax + 0x2a0]
push ecx
push edx
mov eax, ebp
call fcn.0041d8c0
mov byte [0x4fa680], 0
jmp 0x404c14
cmp byte [esp + 0x15], 0
je 0x40525b
cmp byte [ebp + 0x1ef], 0
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x2a4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov edx, edi
je 0x404c95
xor edx, edx
mov esi, dword [0x639210]
mov esi, dword [esi]
mov ecx, dword [esi + ecx*4]
lea eax, [eax + eax*2]
test dword [ecx + eax*4 + 8], 0x1000
jne 0x4051e1
cmp edx, ebx
je 0x4051e1
mov edx, dword [0x639300]
mov eax, dword [edx + 0x14]
mov dword [esp + 0x18], 3
cmp eax, ebx
je 0x405054
movzx ecx, byte [eax + 3]
movzx eax, byte [eax + 2]
add eax, 0xfffffffe
mov dword [esp + 0x18], ecx
cmp eax, 6
ja case.0x404cea.3
jmp dword [eax*4 + 0x4057a0]
mov eax, dword [ebp + 0x42ffc]
mov dword [esp + 0x3c], 2
cmp eax, ebx
je 0x404d70
cmp word [eax + 0x78], bx
je 0x404d70
mov edi, 2
mov edx, dword [0x639304]
mov dword [esp + 0x30], edi
cmp edx, ebx
je 0x405043
movzx eax, byte [ebp + 0x1e7]
push eax
call fcn.0044b2e0
test eax, eax
je 0x405043
mov ecx, dword [0x639300]
cmp byte [ecx + 0xc], 0
jne 0x405043
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov esi, ecx
call fcn.0044ae10
mov esi, dword [0x639300]
mov ecx, eax
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x404f38
mov eax, 0x3e8
jmp 0x404fcc
mov dword [esp + 0x18], ebx
call fcn.0048de36
cdq
mov ecx, 0x64
idiv ecx
sub edx, edi
je 0x404dcb
sub edx, edi
je 0x404dae
sub edx, edi
jne 0x405112
mov edi, 0x4db818
call fcn.004021e0
mov edx, dword [0x639300]
push edx
mov ebx, eax
call fcn.0044ae90
jmp 0x405112
mov edi, 0x4db800
call fcn.004021e0
mov ecx, dword [0x639300]
push ecx
mov ebx, eax
call fcn.0044ae90
jmp 0x405112
mov edi, 0x4db7e8
jmp 0x404d96
mov eax, dword [ebp + 0x42ff8]
mov dword [esp + 0x3c], edi
cmp eax, ebx
je 0x404df0
cmp word [eax + 0x78], bx
jbe 0x404df0
mov edi, 4
jmp 0x404d0e
mov dword [esp + 0x18], ebx
call fcn.0048de36
cdq
mov ecx, 0x64
idiv ecx
sub edx, edi
je 0x404e38
sub edx, edi
je 0x404e1b
sub edx, edi
jne 0x405112
mov edi, 0x4db864
jmp 0x404d96
mov edi, 0x4db84c
call fcn.004021e0
mov ecx, dword [0x639300]
push ecx
mov ebx, eax
call fcn.0044ae90
jmp 0x405112
mov edi, 0x4db834
jmp 0x404d96
mov dword [esp + 0x18], ebx
call fcn.0048de36
cdq
mov ecx, 0x64
idiv ecx
sub edx, edi
je 0x404e8a
sub edx, edi
je 0x404e6d
sub edx, edi
jne 0x405112
mov edi, 0x4db8a8
jmp 0x404d96
mov edi, 0x4db890
call fcn.004021e0
mov ecx, dword [0x639300]
push ecx
mov ebx, eax
call fcn.0044ae90
jmp 0x405112
mov edi, 0x4db870
jmp 0x404d96
mov dword [esp + 0x18], ebx
call fcn.0048de36
cdq
mov ecx, 0x64
idiv ecx
sub edx, edi
je 0x404edc
sub edx, edi
je 0x404ebf
sub edx, edi
jne 0x405112
mov edi, 0x4db8e8
jmp 0x404d96
mov edi, 0x4db8d0
call fcn.004021e0
mov ecx, dword [0x639300]
push ecx
mov ebx, eax
call fcn.0044ae90
jmp 0x405112
mov edi, 0x4db8c0
jmp 0x404d96
mov dword [esp + 0x18], ebx
call fcn.0048de36
cdq
mov ecx, 0x64
idiv ecx
sub edx, edi
je 0x404f2e
sub edx, edi
je 0x404f11
sub edx, edi
jne 0x405112
mov edi, 0x4db940
jmp 0x404d96
mov edi, 0x4db91c
call fcn.004021e0
mov ecx, dword [0x639300]
push ecx
mov ebx, eax
call fcn.0044ae90
jmp 0x405112
mov edi, 0x4db900
jmp 0x404d96
movsx eax, word [ecx + 6]
cmp eax, dword [esp + 0x3c]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x24], edx
jle 0x404fb8
mov ebx, eax
sub ebx, dword [esp + 0x3c]
xor edx, edx
cmp ebx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], edx
jge 0x404fb4
mov edx, eax
sub edx, ebx
cmp edx, 2
jl 0x404f97
mov ecx, dword [ecx + 0x30]
lea edx, [ecx + ebx*8 + 0xc]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
shr ecx, 1
inc ecx
lea ebx, [ebx + ecx*2]
mov edi, dword [edx - 8]
sub dword [esp + 0x2c], edi
mov edi, dword [edx]
sub dword [esp + 0x28], edi
add edx, 0x10
sub ecx, 1
jne 0x404f7a
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
cmp ebx, eax
mov edx, dword [esp + 0x24]
jge 0x404fa6
mov eax, dword [ecx + 0x30]
sub edx, dword [eax + ebx*8 + 4]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add ecx, eax
add edx, ecx
jmp 0x404fb8
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x248]
mov eax, edx
imul eax, eax, 0x3e8
cdq
xor ecx, 0x29
idiv ecx
mov ebx, dword [0x639304]
mov edx, dword [ebx + 0x2a4]
movzx ecx, byte [ebx + 0x2e1]
push eax
mov eax, dword [ebx + 0x2a0]
push edx
mov edx, dword [esi + 0x2a0]
push eax
mov eax, dword [esp + 0x24]
push edi
push 2
push ecx
movzx ecx, byte [esi + 0x2e3]
push edx
push eax
mov eax, dword [esi + 0x2a4]
call fcn.00449430
mov ecx, dword [ebx + 0x2a4]
mov edx, dword [ebx + 0x2a0]
push ecx
movzx ecx, byte [ebx + 0x2e1]
push edx
movzx edx, byte [esi + 0x2e3]
mov dword [0x638590], eax
movzx eax, byte [ebx + 0x2e2]
push eax
push ecx
push 1
push edx
push edi
push 2
mov esi, ebp
call fcn.0041bea0
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x405112
cmp ecx, ebx
je 0x405112
movzx edx, byte [esp + 0x14]
lea edi, [esp + 0x30]
lea ebx, [esp + 0x3c]
call fcn.00428ce0
test eax, eax
je 0x40510a
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov esi, dword [esi + edx*4]
lea ecx, [eax + eax*2]
mov ecx, dword [esi + ecx*4 + 8]
test cl, cl
jns 0x40508c
test ecx, 0x10000000
je 0x40510a
call fcn.00416f30
test eax, eax
je 0x405112
mov eax, dword [eax*4 + 0x516a18]
cmp byte [eax + 0x4dc], 2
jne 0x4050f7
mov dword [esp + 0x18], 0
call fcn.0048de36
cdq
mov ecx, 0x64
idiv ecx
sub edx, 1
je 0x4050ed
sub edx, 1
je 0x4050d3
sub edx, 1
jne 0x405112
mov edi, 0x4db97c
jmp 0x404d96
mov edi, 0x4db96c
call fcn.004021e0
mov ecx, dword [0x639300]
push ecx
mov ebx, eax
call fcn.0044ae90
jmp 0x405112
mov edi, 0x4db95c
jmp 0x404d96
movzx ecx, byte [ebp + 0x1e7]
push ecx
mov edx, eax
call fcn.0044b2e0
test eax, eax
jne 0x405112
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 1
mov edx, dword [ebp + 0x432fc]
mov dword [ebp + 0x43318], edx
mov dword [ebp + 0x4272c], 0xfffffff1
mov dword [ebp + 0x42730], 0xfffffff6
jne case.0x40526a.3
cmp byte [0x4f6c15], 0
jne 0x40514b
cmp byte [0x4f6c95], 0
je case.0x40526a.3
cmp byte [ebp + 0x1df], 0
jne 0x40516e
mov cl, byte [esp + 0x14]
mov edx, dword [0x639300]
mov dword [esp + 0x18], 8
cmp byte [edx + 0x2e3], cl
jne case.0x40526a.3
mov dword [esp + 0x18], 0
mov ecx, dword [0x639300]
mov eax, dword [ecx + 0x2a0]
mov ecx, dword [ecx + 0x2a4]
mov ebx, ecx
shl ebx, 4
sub ebx, ecx
add ebx, ebx
mov dword [esp + 0x3c], ebx
test al, 1
je 0x4051a0
add ebx, 0xf
mov dword [esp + 0x3c], ebx
mov edi, dword [0x639300]
sub ecx, dword [edi + 0x294]
mov esi, eax
sub eax, dword [edi + 0x290]
imul esi, esi, 0x1a
mov edx, eax
mov eax, ecx
mov ecx, edx
imul eax, eax
imul ecx, edx
add eax, ecx
cmp eax, 0x40
mov dword [esp + 0x2c], esi
jl 0x405469
mov dword [0x4fa684], 1
jmp 0x405491
call fcn.0048de36
cdq
mov ecx, 0x64
idiv ecx
lea eax, [edx - 1]
cmp eax, 3
ja case.0x40526a.3
jmp dword [eax*4 + 0x4057bc]
mov edi, 0x4db998
call fcn.004021e0
mov edx, dword [0x639300]
push edx
mov ebx, eax
call fcn.0044ae90
jmp case.0x40526a.3
mov edi, 0x4db9ac
call fcn.004021e0
mov ecx, dword [0x639300]
push ecx
mov ebx, eax
call fcn.0044ae90
jmp case.0x40526a.3
mov edi, 0x4db9c0
jmp 0x405202
mov edi, 0x4db9cc
call fcn.004021e0
mov ecx, dword [0x639300]
push ecx
mov ebx, eax
call fcn.0044ae90
jmp case.0x40526a.3
movzx eax, byte [esp + 0x3c]
dec eax
cmp eax, 9
ja case.0x40526a.3
jmp dword [eax*4 + 0x4057cc]
mov eax, dword [ebp + 0x432d8]
mov dword [ebp + 0x43318], eax
movsx edx, word [eax]
sar edx, 1
neg edx
mov dword [ebp + 0x4272c], edx
movsx ecx, word [eax + 2]
sar ecx, 1
neg ecx
mov dword [ebp + 0x42730], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0xffffffe2
jmp 0x405139
mov eax, dword [ebp + 0x432dc]
mov dword [ebp + 0x43318], eax
movsx edx, word [eax]
sar edx, 1
neg edx
mov dword [ebp + 0x4272c], edx
movsx ecx, word [eax + 2]
sar ecx, 1
neg ecx
mov dword [ebp + 0x42730], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0x1a
mov dword [esp + 0x1c], 0xfffffff1
jmp 0x405139
mov eax, dword [ebp + 0x432e0]
mov dword [ebp + 0x43318], eax
movsx edx, word [eax]
sar edx, 1
neg edx
mov dword [ebp + 0x4272c], edx
movsx ecx, word [eax + 2]
sar ecx, 1
neg ecx
mov dword [ebp + 0x42730], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0x34
mov dword [esp + 0x1c], ebx
jmp 0x405139
mov eax, dword [ebp + 0x432e4]
mov dword [ebp + 0x43318], eax
movsx edx, word [eax]
sar edx, 1
neg edx
mov dword [ebp + 0x4272c], edx
movsx edx, word [eax + 2]
sar edx, 1
neg edx
mov dword [ebp + 0x42730], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0x1a
mov dword [esp + 0x1c], ecx
jmp 0x405139
mov eax, dword [ebp + 0x432e8]
mov dword [ebp + 0x43318], eax
movsx eax, word [eax]
mov ecx, dword [ebp + 0x43318]
sar eax, 1
neg eax
mov dword [ebp + 0x4272c], eax
movsx edx, word [ecx + 2]
sar edx, 1
neg edx
mov dword [ebp + 0x42730], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0x1e
jmp 0x405139
mov eax, dword [ebp + 0x432ec]
mov dword [ebp + 0x43318], eax
movsx eax, word [eax]
mov edx, dword [ebp + 0x43318]
sar eax, 1
neg eax
mov dword [ebp + 0x4272c], eax
movsx eax, word [edx + 2]
sar eax, 1
neg eax
mov dword [ebp + 0x42730], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0xffffffe6
mov dword [esp + 0x1c], ecx
jmp 0x405139
mov eax, dword [ebp + 0x432f0]
mov dword [ebp + 0x43318], eax
movsx ecx, word [eax]
sar ecx, 1
neg ecx
mov edx, eax
mov dword [ebp + 0x4272c], ecx
movsx eax, word [edx + 2]
sar eax, 1
neg eax
mov dword [ebp + 0x42730], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0xffffffcc
mov dword [esp + 0x1c], ebx
jmp 0x405139
mov eax, dword [ebp + 0x432f4]
mov dword [ebp + 0x43318], eax
movsx ecx, word [eax]
sar ecx, 1
neg ecx
mov edx, eax
mov dword [ebp + 0x4272c], ecx
movsx eax, word [edx + 2]
sar eax, 1
neg eax
mov dword [ebp + 0x42730], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0xffffffe6
mov dword [esp + 0x1c], 0xfffffff1
jmp 0x405139
cmp eax, 0x10
jge 0x40547a
mov dword [0x4fa684], 0
jmp 0x405491
cmp dword [0x4fa684], 0
je 0x405491
mov byte [0x4f6c22], 0
mov byte [ebp + 0x1e2], 0
mov edi, dword [edi + 0x10]
test edi, edi
je 0x4054b4
push 1
push edi
mov edi, 2
call fcn.0044cad0
test eax, eax
jne 0x4054b4
mov byte [0x4f6c22], al
mov byte [ebp + 0x1e2], al
cmp dword [esp + 0x18], 1
jne 0x405663
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ebx, edx
lea edi, [esi + eax]
push ebx
push edi
call fcn.00405810
sub eax, 0
je 0x40560a
sub eax, 1
je 0x405606
sub eax, 1
jne 0x405663
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], ebx
cmp byte [0x4f6c22], al
jne 0x40550a
cmp byte [ebp + 0x1e2], al
je 0x405663
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add ebx, ecx
add edi, edx
push ebx
push edi
call fcn.00405810
cmp eax, 2
jne 0x405663
call fcn.0048de36
cdq
mov ecx, 0x32
idiv ecx
mov esi, dword [0x639300]
mov eax, 0x66666667
mov ecx, edx
mov edx, dword [esi + 0x244]
xor edx, 0x72
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax - 0x64]
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, 0x19
cmp eax, 1
jl 0x4055c4
dec eax
cmp eax, 5
ja case.default.0x405576
jmp dword [eax*4 + 0x4057f4]
lea edx, [ecx + ecx*4]
jmp 0x4055af
lea edx, [ecx + ecx*4]
jmp 0x4055ad
mov edx, ecx
shl edx, 4
sub edx, ecx
jmp 0x4055af
imul ecx, ecx, 0x46
mov edx, ecx
jmp 0x4055b3
lea edx, [ecx + ecx*4]
shl edx, 4
jmp 0x4055b3
imul ecx, ecx, 0x64
mov edx, ecx
jmp 0x4055b3
mov edx, ecx
shl edx, 4
sub edx, ecx
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x66666667
imul edx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
add eax, eax
cdq
idiv dword [ebp + 0x4270c]
xor eax, 0xe98c
mov dword [esi + 8], eax
xor eax, 0xe98c
cmp dword [esi + 0x240], 0x2478
jne 0x4055eb
add eax, eax
mov ecx, dword [esi]
xor ecx, 0x372a
cmp ecx, eax
jl 0x405663
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], edi
mov ebx, 2
jmp 0x40566d
xor ebx, ebx
jmp 0x405667
cmp byte [0x4f78e4], 1
mov dword [esp + 0x18], 0
jne 0x405663
cmp byte [ebp + 0x201], 0
jne 0x405663
mov edx, dword [0x6391e4]
mov eax, dword [0x4f78e8]
mov ecx, dword [0x6391e8]
add eax, edx
mov edx, dword [0x4f78ec]
add edx, ecx
mov edi, 0x4fa67c
mov ecx, 0x4fa678
mov dword [0x4fa674], 1
mov dword [0x4fa678], eax
mov dword [0x4fa67c], edx
call fcn.00428c40
mov ebx, dword [esp + 0x18]
mov esi, dword [0x639300]
cmp dword [0x6392fc], 7
mov byte [ebp + 0x1e2], 0
jl 0x405690
push 0x4db9e8
call fcn.0048de58
mov esi, dword [0x639300]
add esp, 4
cmp dword [0x6392fc], 0xa
jl 0x4056bd
mov edi, 0x4dba04
call fcn.004021e0
push eax
mov esi, ebp
call fcn.00441d90
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
cmp dword [0x4fa674], 0
je 0x4056db
call fcn.00428e90
mov esi, dword [0x639300]
mov dword [0x4fa674], 0
lea edi, [esp + 0x3c]
lea ecx, [esp + 0x2c]
call fcn.00428c40
cmp byte [esi + 0xc], 0xc
jne 0x4056fc
test ebx, ebx
jne 0x4056fc
mov al, byte [esi + 0x2e3]
mov byte [esp + 0x14], al
cmp byte [esi + 0x2e5], 0
je 0x405746
mov eax, dword [esi + 0x2a4]
mov cl, byte [esi + 0x2e3]
mov edx, dword [esi + 0x2a0]
mov dword [esi + 0x2b4], eax
mov byte [esi + 0x2e8], 1
mov byte [esi + 0x2e9], 5
mov byte [esi + 0x2ea], cl
mov dword [esi + 0x2b0], edx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov eax, ebp
call fcn.00404530
test eax, eax
je 0x405768
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
movzx ecx, byte [esp + 0x18]
push edx
push ebx
mov eax, esi
call fcn.00449700
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret 4