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

Disassembly:
mov eax, 0x58168
call fcn.0045d1f0
mov eax, dword [0x492794]
xor eax, esp
mov dword [esp + 0x58164], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x58198]
mov ecx, dword [esp + 0x5819c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x581a4]
mov edx, dword [esp + 0x581a0]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x581b0]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x581bc]
mov dword [esp + 0x68], eax
movzx eax, byte [esp + 0x58191]
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x58190]
mov dword [esp + 0x4c], eax
movzx eax, byte [esp + 0x58196]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x581a8]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x58195]
movzx ebx, byte [esp + 0x58192]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x581ac]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x581b4]
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0x58194]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x581b8]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x581c0]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x5817c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x58184]
xor edi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58180]
xor ebp, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], ecx
call dword [0x47f370]
cmp dword [0xff4b0c], 1
push 0x1000
jne 0x40a53a
lea edx, [esp + 0x4c178]
push edx
call fcn.004015e0
lea eax, [esp + 0x4e17c]
push 0x4000
push eax
call fcn.004015e0
lea ecx, [esp + 0x140c4]
push 0x1000
push ecx
call fcn.004015e0
lea edx, [esp + 0xcc]
push 0x1000
push edx
call fcn.004015e0
jmp 0x40a57d
lea eax, [esp + 0x4c178]
push eax
call fcn.004015a0
lea ecx, [esp + 0x4e17c]
push 0x4000
push ecx
call fcn.004015a0
lea edx, [esp + 0x140c4]
push 0x1000
push edx
call fcn.004015a0
lea eax, [esp + 0xcc]
push 0x1000
push eax
call fcn.004015a0
add esp, 0x20
xor esi, esi
mov ecx, dword [esp + 0x54]
movzx eax, byte [ecx + esi]
test al, al
je 0x40af52
cmp al, 0xa
je 0x40b2a6
cmp al, 0xd
je 0x40b2a6
push eax
call fcn.00401870
mov edx, dword [esp + 0x58]
add esp, 4
test eax, eax
je 0x40a6cb
mov ax, word [edx + esi]
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dh, byte [esp + 0x4c]
mov dword [esp + ebp*4 + 0xb4], ecx
xor ecx, ecx
mov ch, byte [esp + 0x3c]
mov word [esp + ebp*2 + 0x4c174], ax
movzx eax, bl
mov dl, byte [esp + 0x40]
mov dword [esp + ebp*4 + 0x140b4], edi
mov cl, byte [esp + 0x38]
add ebp, 1
add esi, 2
mov dword [esp + 0x18], esi
shl edx, 8
or edx, eax
movzx eax, word [esp + ebp*2 + 0x4c172]
mov dword [esp + ebp*4 + 0x40b0], edx
movzx edx, byte [esp + 0x20]
shl ecx, 8
or ecx, edx
cmp eax, 0x4881
mov dword [esp + ebp*4 + 0x80b0], ecx
jg 0x40a68f
je 0x40a67b
cmp eax, 0x4181
je 0x40a666
cmp eax, 0x4281
je 0x40a651
cmp eax, 0x4581
jne 0x40af2c
mov eax, dword [0x4b0330]
imul eax, dword [esp + 0x581c8]
sub edi, eax
jmp 0x40af33
mov ecx, dword [0x4b032c]
imul ecx, dword [esp + 0x581c8]
sub edi, ecx
jmp 0x40af33
mov edx, dword [0x4b0328]
imul edx, dword [esp + 0x581c8]
sub edi, edx
jmp 0x40af33
mov eax, dword [0x4b0338]
imul eax, dword [esp + 0x581c8]
sub edi, eax
jmp 0x40af33
cmp eax, 0x4981
je 0x40a6b6
cmp eax, 0x6381
jne 0x40af2c
mov ecx, dword [0x4b0334]
imul ecx, dword [esp + 0x581c8]
sub edi, ecx
jmp 0x40af33
mov edx, dword [0x4b033c]
imul edx, dword [esp + 0x581c8]
sub edi, edx
jmp 0x40af33
mov al, byte [edx + esi]
movsx ecx, al
add ecx, 0xffffffd8
cmp ecx, 0x37
ja case.0x40a6e4.41
movzx ecx, byte [ecx + 0x40b6f4]
jmp dword [ecx*4 + 0x40b6e4]
xor edi, edi
xor eax, eax
add esi, 1
xor ecx, ecx
mov bl, byte [edx + esi]
add esi, 1
cmp bl, 0x29
jne 0x40a70e
mov byte [esp + ecx + 0x4c0f4], 0
mov ecx, 0x80
jmp 0x40a715
mov byte [esp + ecx + 0x4c0f4], bl
add ecx, 1
cmp ecx, 0x80
jl 0x40a6f4
movsx ecx, byte [esp + 0x4c0f4]
add ecx, 0xffffffbd
cmp ecx, 0x36
mov dword [esp + 0x18], esi
ja case.0x40a73f.68
movzx edx, byte [ecx + 0x40b748]
jmp dword [edx*4 + 0x40b72c]
mov esi, 2
xor ecx, ecx
lea ecx, [ecx]
mov dl, byte [esp + esi + 0x4c0f4]
test dl, dl
je 0x40a78e
cmp dl, 0x2c
jne 0x40a774
add eax, ecx
mov byte [esp + eax + 0x4c0b4], 0
add edi, 1
add ecx, 0xa
xor eax, eax
jmp 0x40a781
lea ebx, [ecx + eax]
mov byte [esp + ebx + 0x4c0b4], dl
add eax, 1
add esi, 1
cmp esi, 0x80
jl 0x40a750
jmp 0x40a79c
lea ecx, [edi + edi*4]
lea edx, [eax + ecx*2]
mov byte [esp + edx + 0x4c0b4], 0
cmp dword [esp + 0x581c4], 1
jne case.0x40a73f.68
lea eax, [esp + 0x4c0b4]
push eax
call fcn.0042f630
lea ecx, [esp + 0x4c0c2]
push ecx
mov dword [esp + 0x58], eax
call fcn.0042f630
lea edx, [esp + 0x4c0d0]
push edx
mov dword [esp + 0x4c], eax
call fcn.0042f630
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp case.0x40a73f.68
mov esi, 2
xor ecx, ecx
lea esp, [esp]
mov dl, byte [esp + esi + 0x4c0f4]
test dl, dl
je 0x40a82e
cmp dl, 0x2c
jne 0x40a814
add eax, ecx
mov byte [esp + eax + 0x4c0b4], 0
add edi, 1
add ecx, 0xa
xor eax, eax
jmp 0x40a821
lea ebx, [eax + ecx]
mov byte [esp + ebx + 0x4c0b4], dl
add eax, 1
add esi, 1
cmp esi, 0x80
jl 0x40a7f0
jmp 0x40a83c
lea ecx, [edi + edi*4]
lea edx, [eax + ecx*2]
mov byte [esp + edx + 0x4c0b4], 0
cmp dword [esp + 0x581c4], 1
jne case.0x40a73f.68
lea eax, [esp + 0x4c0b4]
push eax
call fcn.0042f630
lea ecx, [esp + 0x4c0c2]
push ecx
mov dword [esp + 0x28], eax
call fcn.0042f630
lea edx, [esp + 0x4c0d0]
push edx
mov dword [esp + 0x44], eax
call fcn.0042f630
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp case.0x40a73f.68
lea edi, [esp + 0x4c0b4]
lea edx, [esp + 0x4c0f6]
mov ecx, 2
sub edi, edx
lea ebx, [ebx]
mov dl, byte [esp + ecx + 0x4c0f4]
test dl, dl
lea esi, [esp + ecx + 0x4c0f4]
je 0x40a8c5
add ecx, 1
add eax, 1
cmp ecx, 0x80
mov byte [esi + edi], dl
jl 0x40a8a0
jmp 0x40a8cd
mov byte [esp + eax + 0x4c0b4], 0
cmp dword [esp + 0x581c4], 1
jne case.0x40a73f.68
lea eax, [esp + 0x4c0b4]
push eax
call fcn.0042f630
add esp, 4
mov dword [esp + 0x24], eax
jmp case.0x40a73f.68
movzx eax, byte [esp + 0x58192]
mov ecx, dword [esp + 0x5817c]
mov dword [esp + 0x50], eax
movzx eax, byte [esp + 0x58191]
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x58190]
mov dword [esp + 0x4c], eax
movzx eax, byte [esp + 0x58196]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x58195]
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0x58194]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], ecx
jmp case.0x40a73f.68
mov edx, dword [esp + 0x24]
mov word [esp + ebp*2 + 0x4c174], 0xa
mov dword [esp + ebp*4 + 0xb4], edx
add ebp, 1
add dword [esp + 0x58], 1
jmp case.0x40a73f.68
xor ebx, ebx
mov esi, ebp
xor edi, edi
sub esi, dword [esp + 0x58]
mov dword [esp + 0x28], ebx
lea esp, [esp]
movzx eax, byte [esp + ebx + 0x4c0f6]
test al, al
je 0x40a9f2
push eax
call fcn.00401870
add esp, 4
test eax, eax
push 2
je 0x40a9ba
lea eax, [esp + ebx + 0x4c0fa]
push eax
lea eax, [edi + esi*4]
add eax, esi
lea ecx, [esp + eax*2 + 0x4e17c]
push ecx
call fcn.004014b0
add ebx, 2
jmp 0x40a9e4
mov dl, byte [esp + ebx + 0x4c0fa]
lea ecx, [edi + esi*4]
lea eax, [esp + 0x18]
add ecx, esi
mov byte [esp + 0x18], dl
push eax
lea edx, [esp + ecx*2 + 0x4e17c]
push edx
mov byte [esp + 0x21], 0
call fcn.004014b0
add ebx, 1
add esp, 0xc
add edi, 1
cmp ebx, 0x80
jl 0x40a980
cmp dword [esp + 0x581c4], 1
jne 0x40aa07
lea eax, [esi + esi*4]
mov word [esp + eax*2 + 0x4e17a], di
lea eax, [esi + esi*4]
add eax, eax
cmp word [esp + eax + 0x4e17a], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x34], eax
jbe 0x40ab14
mov ebx, dword [esp + 0x34]
lea ecx, [esp + esi*4 + 0x40b4]
lea edx, [esp + esi*8 + 0xc0b8]
lea eax, [esp + esi*8 + 0xc0b4]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x30], eax
lea ebx, [esp + ebx + 0x4e174]
lea esp, [esp]
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
push 0xff
push ebx
push edx
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
push ecx
push eax
mov eax, dword [0x4adc10]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
imul esi, esi, 0x1b0
sub esp, 0x1b0
mov edi, esp
add esi, 0x713cd0
mov ecx, 0x6c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x250]
push ecx
call fcn.0040a000
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x26c], ecx
mov ecx, dword [eax + 0xc]
add dword [esp + 0x1f0], ecx
mov ecx, dword [esp + 0x1fc]
mov dword [esp + 0x268], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x278], eax
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0x270], edx
movzx edx, word [esp + ecx + 0x4e342]
add eax, 1
add esp, 0x1c8
add ebx, 2
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x40aa60
mov ax, word [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov word [esp + ecx + 0x4e17c], ax
jmp case.0x40a73f.68
add esi, 1
xor eax, eax
nop
mov cl, byte [edx + esi]
add esi, 1
cmp cl, 0x3e
jne 0x40ab4a
mov byte [esp + eax + 0x4c0f4], 0
mov eax, 0x80
jmp 0x40ab51
mov byte [esp + eax + 0x4c0f4], cl
add eax, 1
cmp eax, 0x80
jl 0x40ab30
lea eax, [esp + 0x4c0f4]
mov dword [esp + 0x18], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ab70
sub eax, edx
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0
jle case.0x40a73f.68
movzx edx, byte [esp + 0x50]
movzx ecx, byte [esp + 0x20]
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov bh, byte [esp + 0x4c]
xor eax, eax
mov ah, byte [esp + 0x3c]
lea esi, [esp + ebp*2 + 0x4c174]
mov bl, byte [esp + 0x40]
mov al, byte [esp + 0x38]
shl ebx, 8
or ebx, edx
shl eax, 8
or eax, ecx
mov dword [esp + 0x28], eax
jmp 0x40abd0
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + edx + 0x4c0f4]
push eax
call fcn.00401870
add esp, 4
test eax, eax
je 0x40ac32
mov eax, dword [esp + 0x10]
mov cx, word [esp + eax + 0x4c0f4]
mov edx, dword [esp + 0x24]
mov word [esi], cx
mov ecx, dword [esp + 0x28]
mov dword [esp + ebp*4 + 0x140b4], edi
sub edi, dword [esp + 0x581c8]
mov dword [esp + ebp*4 + 0xb4], edx
mov dword [esp + ebp*4 + 0x40b4], ebx
mov dword [esp + ebp*4 + 0x80b4], ecx
add ebp, 1
add esi, 2
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x40ac8c
mov edx, dword [esp + 0x10]
mov al, byte [esp + edx + 0x4c0f4]
mov byte [esp + 0x14], al
push 2
lea eax, [esp + 0x18]
push eax
push esi
mov byte [esp + 0x21], 0
call fcn.004014b0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + ebp*4 + 0x140c0], edi
sub edi, dword [esp + 0x581d4]
mov dword [esp + ebp*4 + 0xc0], ecx
mov dword [esp + ebp*4 + 0x40c0], ebx
mov dword [esp + ebp*4 + 0x80c0], edx
add esp, 0xc
add ebp, 1
add esi, 2
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jl 0x40abd0
jmp 0x40af33
xor edi, edi
mov ebx, edx
movzx ecx, byte [ebx + esi]
push ecx
call fcn.00401870
add esp, 4
test eax, eax
je 0x40acc3
mov byte [esp + edi + 0x4c0b4], 0
mov edi, 0x40
jmp 0x40acf5
mov al, byte [ebx + esi]
test al, al
jne 0x40acd8
mov byte [esp + edi + 0x4c0b4], al
mov edi, 0x40
jmp 0x40acf5
cmp al, 0x28
jne 0x40aceb
mov byte [esp + edi + 0x4c0b4], 0
mov edi, 0x40
jmp 0x40acf5
mov byte [esp + edi + 0x4c0b4], al
add esi, 1
add edi, 1
cmp edi, 0x40
jl 0x40aca3
lea edx, [esp + 0x4c0b4]
push edx
mov dword [esp + 0x1c], esi
call fcn.004303f0
add esp, 4
sub eax, 0
je 0x40ad68
sub eax, 1
je 0x40ad41
lea eax, [esp + 0x4c0b4]
push eax
push 0x480d00
push 0x4aa4e8
call fcn.0045d367
push 0x4aa4e8
call fcn.00408d80
add esp, 0x10
jmp 0x40ad8a
lea ecx, [esp + 0x4c0b4]
push ecx
call fcn.0042f270
add esp, 4
lea edx, [esp + 0x4c0f4]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x40ad58
jmp 0x40ad8a
lea edx, [esp + 0x4c0b4]
push edx
call fcn.0042f630
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c104]
push eax
call fcn.0040a1c0
add esp, 0x14
lea eax, [esp + 0x4c0f4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ad94
sub eax, edx
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0
jle case.0x40a73f.68
movzx ecx, byte [esp + 0x50]
movzx edx, byte [esp + 0x20]
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov bh, byte [esp + 0x4c]
xor eax, eax
mov ah, byte [esp + 0x3c]
lea esi, [esp + ebp*2 + 0x4c174]
mov bl, byte [esp + 0x40]
mov al, byte [esp + 0x38]
shl ebx, 8
or ebx, ecx
shl eax, 8
or eax, edx
mov dword [esp + 0x28], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
movzx eax, byte [esp + eax + 0x4c0f4]
push eax
call fcn.00401870
add esp, 4
test eax, eax
je 0x40ae52
mov eax, dword [esp + 0x10]
mov cx, word [esp + eax + 0x4c0f4]
mov edx, dword [esp + 0x24]
mov word [esi], cx
mov ecx, dword [esp + 0x28]
mov dword [esp + ebp*4 + 0x140b4], edi
sub edi, dword [esp + 0x581c8]
mov dword [esp + ebp*4 + 0xb4], edx
mov dword [esp + ebp*4 + 0x40b4], ebx
mov dword [esp + ebp*4 + 0x80b4], ecx
add ebp, 1
add esi, 2
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x40aeac
mov edx, dword [esp + 0x10]
mov al, byte [esp + edx + 0x4c0f4]
mov byte [esp + 0x14], al
push 2
lea eax, [esp + 0x18]
push eax
push esi
mov byte [esp + 0x21], 0
call fcn.004014b0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + ebp*4 + 0x140c0], edi
sub edi, dword [esp + 0x581d4]
mov dword [esp + ebp*4 + 0xc0], ecx
mov dword [esp + ebp*4 + 0x40c0], ebx
mov dword [esp + ebp*4 + 0x80c0], edx
add esp, 0xc
add ebp, 1
add esi, 2
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jl 0x40adf0
jmp 0x40af33
push 2
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + ebp*2 + 0x4c17c]
add esi, 1
push edx
mov byte [esp + 0x20], al
mov byte [esp + 0x21], 0
mov dword [esp + 0x24], esi
call fcn.004014b0
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov ch, byte [esp + 0x58]
mov dword [esp + ebp*4 + 0xc0], eax
xor eax, eax
mov ah, byte [esp + 0x48]
movzx edx, bl
mov cl, byte [esp + 0x4c]
add esp, 0xc
mov dword [esp + ebp*4 + 0x140b4], edi
mov al, byte [esp + 0x38]
shl ecx, 8
or ecx, edx
mov dword [esp + ebp*4 + 0x40b4], ecx
movzx ecx, byte [esp + 0x20]
shl eax, 8
or eax, ecx
mov dword [esp + ebp*4 + 0x80b4], eax
add ebp, 1
sub edi, dword [esp + 0x581c8]
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x18], 0x1000
jge 0x40af5c
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
jmp 0x40a582
mov word [esp + ebp*2 + 0x4c174], 0
call dword [0x47f370]
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
jle 0x40b4b7
lea eax, [esp + 0x4c174]
lea ebx, [esp + 0x380b4]
mov dword [esp + 0x20], eax
jmp 0x40af90
mov esi, dword [esp + 0x18]
lea ecx, [esi*4]
mov edx, dword [esp + ecx + 0xb4]
imul edx, edx, 0x1b0
mov eax, dword [edx + 0x714204]
cmp dword [esp + 0x44], eax
jge 0x40afb8
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
cmp word [eax], 0xa
jne 0x40b0c9
mov edx, dword [esp + 0x5817c]
mov eax, dword [esp + edx*4 + 0xb4]
imul eax, eax, 0x1b0
cmp esi, ebp
mov edx, dword [eax + 0x714204]
mov dword [esp + 0x30], edx
jge 0x40b080
lea edx, [esp + esi*8 + 0xc0b4]
mov eax, ebx
jmp 0x40b000
mov di, word [esp + esi*2 + 0x4c176]
mov word [esp + esi*2 + 0x4c174], di
mov edi, dword [esp + ecx + 0x140b8]
mov dword [esp + ecx + 0x140b4], edi
mov edi, dword [esp + ecx + 0xb8]
mov dword [esp + ecx + 0xb4], edi
mov edi, dword [esp + ecx + 0x40b8]
mov dword [esp + ecx + 0x40b4], edi
mov edi, dword [esp + ecx + 0x80b8]
mov dword [esp + ecx + 0x80b4], edi
mov edi, dword [eax + 0x14]
mov dword [eax], edi
mov edi, dword [eax + 0x18]
mov dword [eax + 4], edi
mov edi, dword [eax + 0x1c]
mov dword [eax + 8], edi
mov edi, dword [eax + 0x20]
mov dword [eax + 0xc], edi
mov edi, dword [eax + 0x24]
mov dword [eax + 0x10], edi
mov edi, dword [edx + 8]
mov dword [edx], edi
mov edi, dword [edx + 0xc]
mov dword [edx + 4], edi
add esi, 1
add ecx, 4
add eax, 0x14
add edx, 8
cmp esi, ebp
jl 0x40b000
mov ecx, dword [esp + 0x5817c]
mov edx, dword [esp + ecx*4 + 0xb4]
mov eax, dword [esp + 0x58180]
imul edx, edx, 0x1b0
mov ecx, dword [edx + 0x714208]
add ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
add eax, ecx
add edx, eax
sub ebp, 1
cmp edx, dword [esp + 0x5818c]
mov dword [esp + 0x2c], eax
jg 0x40b40d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add eax, eax
add eax, eax
mov ecx, dword [esp + eax + 0x140b4]
mov esi, dword [esp + eax + 0xb4]
push ecx
imul esi, esi, 0x1b0
mov ecx, dword [esp + eax + 0x40b8]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push ecx
sub esp, 0x1b0
lea edx, [esp + 0x250]
mov edi, esp
add esi, 0x7141e0
mov ecx, 0x6c
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040a000
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 [eax + 0x10]
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0xc]
add ecx, dword [esp + 0x210]
add esp, 0x1c8
cmp ecx, dword [esp + 0x58188]
jle 0x40b3bb
mov edx, dword [esp + 0x20]
movzx eax, word [edx]
cmp eax, 0x7681
jg 0x40b32d
je 0x40b3a2
cmp eax, 0x4683
jg 0x40b2e2
je 0x40b3a2
cmp eax, 0x4283
jg 0x40b2c2
je 0x40b3a2
cmp eax, 0x4083
je 0x40b3a2
cmp eax, 0x4181
je 0x40b3a2
cmp eax, 0x4281
je 0x40b3a2
mov eax, dword [esp + 0x58180]
mov ecx, dword [esp + 0x5817c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + ecx*4 + 0xb4]
mov ecx, dword [esp + 0x2c]
imul eax, eax, 0x1b0
mov esi, dword [eax + 0x714208]
add esi, dword [esp + 0x44]
mov eax, dword [eax + 0x714204]
add ecx, esi
xor edx, edx
add eax, ecx
cmp eax, dword [esp + 0x5818c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
jle 0x40b3b7
mov esi, dword [esp + 0x20]
mov cx, word [0x480cfc]
mov dl, byte [0x480cfe]
push 2
lea eax, [esp + 0x14]
push eax
add esi, 0xfffffffe
push esi
mov word [esp + 0x1c], cx
mov byte [esp + 0x1e], dl
call fcn.004014b0
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + ebp*4 + 0x140bc]
mov edx, dword [esp + ebp*4 + 0x40bc]
mov eax, dword [esp + 0x38]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x58184]
push esi
mov esi, dword [esp + ebp*4 + 0xb8]
push edx
imul esi, esi, 0x1b0
push eax
push ecx
sub esp, 0x1b0
lea edx, [esp + 0x250]
mov edi, esp
add esi, 0x7141e0
mov ecx, 0x6c
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040a000
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 [eax + 0x10]
add esp, 0x1c8
mov dword [ebx + 0x10], eax
jmp 0x40b3bb
push 0x480cc8
call fcn.00408d80
mov edx, dword [esp + 0x58]
push edx
call fcn.00408d80
add esp, 8
jmp 0x40b6c9
cmp eax, 0x4381
je 0x40b3a2
cmp eax, 0x4483
je 0x40b3a2
cmp eax, 0x4581
jmp 0x40b1ad
cmp eax, 0x5881
jg 0x40b30d
je 0x40b3a2
sub eax, 0x4881
je 0x40b3a2
sub eax, 2
je 0x40b3a2
sub eax, 0xfe
jmp 0x40b1ad
cmp eax, 0x5b81
je 0x40b3a2
cmp eax, 0x6283
je 0x40b3a2
cmp eax, 0x6a81
jmp 0x40b1ad
cmp eax, 0xa382
jg 0x40b36f
je 0x40b3a2
cmp eax, 0x8583
jg 0x40b357
je 0x40b3a2
cmp eax, 0x7881
je 0x40b3a2
cmp eax, 0x7a81
je 0x40b3a2
cmp eax, 0x8383
jmp 0x40b1ad
cmp eax, 0x8783
je 0x40b3a2
cmp eax, 0x9f82
je 0x40b3a2
cmp eax, 0xa182
jmp 0x40b1ad
cmp eax, 0xe182
jg 0x40b390
je 0x40b3a2
cmp eax, 0xa582
je 0x40b3a2
cmp eax, 0xa782
je 0x40b3a2
cmp eax, 0xc182
jmp 0x40b1ad
cmp eax, 0xe382
je 0x40b3a2
cmp eax, 0xe582
jne 0x40b1b3
cmp dword [esp + 0x34], 0
jne 0x40b1b3
mov dword [esp + 0x34], 1
jmp 0x40b3bb
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
add dword [esp + 0x20], 2
mov dword [esp + eax*8 + 0xc0b8], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + eax*8 + 0x180b4], edx
mov edx, dword [esp + 0x44]
mov dword [esp + eax*8 + 0xc0b4], ecx
add ecx, dword [ebx + 0xc]
mov dword [esp + eax*8 + 0x180b8], edx
add eax, 1
add ebx, 0x14
cmp eax, ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], eax
jl 0x40af90
jmp 0x40b4b7
mov ebp, dword [esp + 0x18]
mov ax, word [0x480cfc]
mov cl, byte [0x480cfe]
push 2
lea edx, [esp + 0x14]
push edx
lea esi, [esp + ebp*2 + 0x4c17a]
push esi
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], cl
call fcn.004014b0
mov eax, dword [esp + ebp*4 + 0x140bc]
mov ecx, dword [esp + ebp*4 + 0x40bc]
mov edx, dword [esp + 0x38]
add esp, 0xc
push eax
mov eax, dword [esp + 0x58184]
push esi
mov esi, dword [esp + ebp*4 + 0xb8]
push ecx
imul esi, esi, 0x1b0
push edx
push eax
sub esp, 0x1b0
mov edi, esp
add esi, 0x7141e0
mov ecx, 0x6c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x250]
push ecx
call fcn.0040a000
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
lea ecx, [ebp + ebp*4]
lea ecx, [esp + ecx*4 + 0x3827c]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
add esp, 0x1c8
mov dword [ecx + 0x10], eax
call dword [0x47f370]
cmp dword [0xff4b0c], 1
push 0x2000
jne 0x40b5cd
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x4c178]
push edx
push eax
call fcn.00401500
mov edx, dword [esp + 0x88]
push 0xa000
lea ecx, [esp + 0x4e184]
push ecx
push edx
call fcn.00401500
mov ecx, dword [esp + 0x7c]
push 0x4000
lea eax, [esp + 0x140d0]
push eax
push ecx
call fcn.00401500
mov eax, dword [esp + 0x9c]
push 0x4000
lea edx, [esp + 0xdc]
push edx
push eax
call fcn.00401500
mov edx, dword [esp + 0x8c]
push 0x4000
lea ecx, [esp + 0x40e8]
push ecx
push edx
call fcn.00401500
mov ecx, dword [esp + 0xbc]
push 0x4000
lea eax, [esp + 0x80f4]
push eax
push ecx
call fcn.00401500
mov eax, dword [esp + 0xbc]
add esp, 0x48
push 0x14000
lea edx, [esp + 0x380b8]
push edx
push eax
call fcn.00401500
mov edx, dword [esp + 0x6c]
push 0x8000
lea ecx, [esp + 0xc0c4]
push ecx
push edx
call fcn.00401500
mov ecx, dword [esp + 0x80]
push 0x18000
lea eax, [esp + 0x200d0]
push eax
push ecx
call fcn.00401500
mov eax, dword [esp + 0x94]
push 0x8000
lea edx, [esp + 0x180dc]
push edx
push eax
call fcn.00401500
jmp 0x40b6c6
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x4c178]
push ecx
push edx
call fcn.004014b0
mov ecx, dword [esp + 0x88]
push 0xa000
lea eax, [esp + 0x4e184]
push eax
push ecx
call fcn.004014b0
mov eax, dword [esp + 0x7c]
push 0x4000
lea edx, [esp + 0x140d0]
push edx
push eax
call fcn.004014b0
mov edx, dword [esp + 0x9c]
push 0x4000
lea ecx, [esp + 0xdc]
push ecx
push edx
call fcn.004014b0
mov ecx, dword [esp + 0x8c]
push 0x4000
lea eax, [esp + 0x40e8]
push eax
push ecx
call fcn.004014b0
mov eax, dword [esp + 0xbc]
push 0x4000
lea edx, [esp + 0x80f4]
push edx
push eax
call fcn.004014b0
mov edx, dword [esp + 0xbc]
add esp, 0x48
push 0x14000
lea ecx, [esp + 0x380b8]
push ecx
push edx
call fcn.004014b0
mov ecx, dword [esp + 0x6c]
push 0x8000
lea eax, [esp + 0xc0c4]
push eax
push ecx
call fcn.004014b0
mov eax, dword [esp + 0x80]
push 0x18000
lea edx, [esp + 0x200d0]
push edx
push eax
call fcn.004014b0
mov edx, dword [esp + 0x94]
push 0x8000
lea ecx, [esp + 0x180dc]
push ecx
push edx
call fcn.004014b0
add esp, 0x30
mov ecx, dword [esp + 0x58174]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d1d4
add esp, 0x58168
ret