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

Disassembly:
mov eax, 0x58168
call fcn.004541d0
mov eax, dword [0x4874c8]
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 [0x476370]
cmp dword [0xf1e5fc], 1
push 0x1000
jne 0x409f9a
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 0x409fdd
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 0x40a9b2
cmp al, 0xa
je 0x40ad06
cmp al, 0xd
je 0x40ad06
push eax
call fcn.00401870
mov edx, dword [esp + 0x58]
add esp, 4
test eax, eax
je 0x40a12b
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 0x40a0ef
je 0x40a0db
cmp eax, 0x4181
je 0x40a0c6
cmp eax, 0x4281
je 0x40a0b1
cmp eax, 0x4581
jne 0x40a98c
mov eax, dword [0x4a15b4]
imul eax, dword [esp + 0x581c8]
sub edi, eax
jmp 0x40a993
mov ecx, dword [0x4a15b0]
imul ecx, dword [esp + 0x581c8]
sub edi, ecx
jmp 0x40a993
mov edx, dword [0x4a15ac]
imul edx, dword [esp + 0x581c8]
sub edi, edx
jmp 0x40a993
mov eax, dword [0x4a15bc]
imul eax, dword [esp + 0x581c8]
sub edi, eax
jmp 0x40a993
cmp eax, 0x4981
je 0x40a116
cmp eax, 0x6381
jne 0x40a98c
mov ecx, dword [0x4a15b8]
imul ecx, dword [esp + 0x581c8]
sub edi, ecx
jmp 0x40a993
mov edx, dword [0x4a15c0]
imul edx, dword [esp + 0x581c8]
sub edi, edx
jmp 0x40a993
mov al, byte [edx + esi]
movsx ecx, al
add ecx, 0xffffffd8
cmp ecx, 0x37
ja case.0x40a144.41
movzx ecx, byte [ecx + 0x40b154]
jmp dword [ecx*4 + 0x40b144]
xor edi, edi
xor eax, eax
add esi, 1
xor ecx, ecx
mov bl, byte [edx + esi]
add esi, 1
cmp bl, 0x29
jne 0x40a16e
mov byte [esp + ecx + 0x4c0f4], 0
mov ecx, 0x80
jmp 0x40a175
mov byte [esp + ecx + 0x4c0f4], bl
add ecx, 1
cmp ecx, 0x80
jl 0x40a154
movsx ecx, byte [esp + 0x4c0f4]
add ecx, 0xffffffbd
cmp ecx, 0x36
mov dword [esp + 0x18], esi
ja case.0x40a19f.68
movzx edx, byte [ecx + 0x40b1a8]
jmp dword [edx*4 + 0x40b18c]
mov esi, 2
xor ecx, ecx
lea ecx, [ecx]
mov dl, byte [esp + esi + 0x4c0f4]
test dl, dl
je 0x40a1ee
cmp dl, 0x2c
jne 0x40a1d4
add eax, ecx
mov byte [esp + eax + 0x4c0b4], 0
add edi, 1
add ecx, 0xa
xor eax, eax
jmp 0x40a1e1
lea ebx, [ecx + eax]
mov byte [esp + ebx + 0x4c0b4], dl
add eax, 1
add esi, 1
cmp esi, 0x80
jl 0x40a1b0
jmp 0x40a1fc
lea ecx, [edi + edi*4]
lea edx, [eax + ecx*2]
mov byte [esp + edx + 0x4c0b4], 0
cmp dword [esp + 0x581c4], 1
jne case.0x40a19f.68
lea eax, [esp + 0x4c0b4]
push eax
call fcn.0042dc30
lea ecx, [esp + 0x4c0c2]
push ecx
mov dword [esp + 0x58], eax
call fcn.0042dc30
lea edx, [esp + 0x4c0d0]
push edx
mov dword [esp + 0x4c], eax
call fcn.0042dc30
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp case.0x40a19f.68
mov esi, 2
xor ecx, ecx
lea esp, [esp]
mov dl, byte [esp + esi + 0x4c0f4]
test dl, dl
je 0x40a28e
cmp dl, 0x2c
jne 0x40a274
add eax, ecx
mov byte [esp + eax + 0x4c0b4], 0
add edi, 1
add ecx, 0xa
xor eax, eax
jmp 0x40a281
lea ebx, [eax + ecx]
mov byte [esp + ebx + 0x4c0b4], dl
add eax, 1
add esi, 1
cmp esi, 0x80
jl 0x40a250
jmp 0x40a29c
lea ecx, [edi + edi*4]
lea edx, [eax + ecx*2]
mov byte [esp + edx + 0x4c0b4], 0
cmp dword [esp + 0x581c4], 1
jne case.0x40a19f.68
lea eax, [esp + 0x4c0b4]
push eax
call fcn.0042dc30
lea ecx, [esp + 0x4c0c2]
push ecx
mov dword [esp + 0x28], eax
call fcn.0042dc30
lea edx, [esp + 0x4c0d0]
push edx
mov dword [esp + 0x44], eax
call fcn.0042dc30
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp case.0x40a19f.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 0x40a325
add ecx, 1
add eax, 1
cmp ecx, 0x80
mov byte [esi + edi], dl
jl 0x40a300
jmp 0x40a32d
mov byte [esp + eax + 0x4c0b4], 0
cmp dword [esp + 0x581c4], 1
jne case.0x40a19f.68
lea eax, [esp + 0x4c0b4]
push eax
call fcn.0042dc30
add esp, 4
mov dword [esp + 0x24], eax
jmp case.0x40a19f.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.0x40a19f.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.0x40a19f.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 0x40a452
push eax
call fcn.00401870
add esp, 4
test eax, eax
push 2
je 0x40a41a
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 0x40a444
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 0x40a3e0
cmp dword [esp + 0x581c4], 1
jne 0x40a467
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 0x40a574
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 [0x4a0be4]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
imul esi, esi, 0x170
sub esp, 0x170
mov edi, esp
add esi, 0x7ceb78
mov ecx, 0x5c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x210]
push ecx
call fcn.00409a60
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x22c], ecx
mov ecx, dword [eax + 0xc]
add dword [esp + 0x1b0], ecx
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0x228], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 0x230], edx
movzx edx, word [esp + ecx + 0x4e302]
add eax, 1
add esp, 0x188
add ebx, 2
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x40a4c0
mov ax, word [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov word [esp + ecx + 0x4e17c], ax
jmp case.0x40a19f.68
add esi, 1
xor eax, eax
nop
mov cl, byte [edx + esi]
add esi, 1
cmp cl, 0x3e
jne 0x40a5aa
mov byte [esp + eax + 0x4c0f4], 0
mov eax, 0x80
jmp 0x40a5b1
mov byte [esp + eax + 0x4c0f4], cl
add eax, 1
cmp eax, 0x80
jl 0x40a590
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 0x40a5d0
sub eax, edx
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0
jle case.0x40a19f.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 0x40a630
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + edx + 0x4c0f4]
push eax
call fcn.00401870
add esp, 4
test eax, eax
je 0x40a692
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 0x40a6ec
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 0x40a630
jmp 0x40a993
xor edi, edi
mov ebx, edx
movzx ecx, byte [ebx + esi]
push ecx
call fcn.00401870
add esp, 4
test eax, eax
je 0x40a723
mov byte [esp + edi + 0x4c0b4], 0
mov edi, 0x40
jmp 0x40a755
mov al, byte [ebx + esi]
test al, al
jne 0x40a738
mov byte [esp + edi + 0x4c0b4], al
mov edi, 0x40
jmp 0x40a755
cmp al, 0x28
jne 0x40a74b
mov byte [esp + edi + 0x4c0b4], 0
mov edi, 0x40
jmp 0x40a755
mov byte [esp + edi + 0x4c0b4], al
add esi, 1
add edi, 1
cmp edi, 0x40
jl 0x40a703
lea edx, [esp + 0x4c0b4]
push edx
mov dword [esp + 0x1c], esi
call fcn.0042ea00
add esp, 4
sub eax, 0
je 0x40a7c8
sub eax, 1
je 0x40a7a1
lea eax, [esp + 0x4c0b4]
push eax
push 0x477c90
push 0x49f208
call fcn.00454348
push 0x49f208
call fcn.004087e0
add esp, 0x10
jmp 0x40a7ea
lea ecx, [esp + 0x4c0b4]
push ecx
call fcn.0042d870
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 0x40a7b8
jmp 0x40a7ea
lea edx, [esp + 0x4c0b4]
push edx
call fcn.0042dc30
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c104]
push eax
call fcn.00409c20
add esp, 0x14
lea eax, [esp + 0x4c0f4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a7f4
sub eax, edx
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0
jle case.0x40a19f.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 0x40a8b2
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 0x40a90c
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 0x40a850
jmp 0x40a993
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 0x40a9bc
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
jmp 0x409fe2
mov word [esp + ebp*2 + 0x4c174], 0
call dword [0x476370]
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
jle 0x40af17
lea eax, [esp + 0x4c174]
lea ebx, [esp + 0x380b4]
mov dword [esp + 0x20], eax
jmp 0x40a9f0
mov esi, dword [esp + 0x18]
lea ecx, [esi*4]
mov edx, dword [esp + ecx + 0xb4]
imul edx, edx, 0x170
mov eax, dword [edx + 0x7cefec]
cmp dword [esp + 0x44], eax
jge 0x40aa18
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
cmp word [eax], 0xa
jne 0x40ab29
mov edx, dword [esp + 0x5817c]
mov eax, dword [esp + edx*4 + 0xb4]
imul eax, eax, 0x170
cmp esi, ebp
mov edx, dword [eax + 0x7cefec]
mov dword [esp + 0x30], edx
jge 0x40aae0
lea edx, [esp + esi*8 + 0xc0b4]
mov eax, ebx
jmp 0x40aa60
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 0x40aa60
mov ecx, dword [esp + 0x5817c]
mov edx, dword [esp + ecx*4 + 0xb4]
mov eax, dword [esp + 0x58180]
imul edx, edx, 0x170
mov ecx, dword [edx + 0x7ceff0]
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 0x40ae6d
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, 0x170
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, 0x170
lea edx, [esp + 0x210]
mov edi, esp
add esi, 0x7cefc8
mov ecx, 0x5c
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00409a60
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 + 0x1d0]
add esp, 0x188
cmp ecx, dword [esp + 0x58188]
jle 0x40ae1b
mov edx, dword [esp + 0x20]
movzx eax, word [edx]
cmp eax, 0x7681
jg 0x40ad8d
je 0x40ae02
cmp eax, 0x4683
jg 0x40ad42
je 0x40ae02
cmp eax, 0x4283
jg 0x40ad22
je 0x40ae02
cmp eax, 0x4083
je 0x40ae02
cmp eax, 0x4181
je 0x40ae02
cmp eax, 0x4281
je 0x40ae02
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, 0x170
mov esi, dword [eax + 0x7ceff0]
add esi, dword [esp + 0x44]
mov eax, dword [eax + 0x7cefec]
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 0x40ae17
mov esi, dword [esp + 0x20]
mov cx, word [0x477c8c]
mov dl, byte [0x477c8e]
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, 0x170
push eax
push ecx
sub esp, 0x170
lea edx, [esp + 0x210]
mov edi, esp
add esi, 0x7cefc8
mov ecx, 0x5c
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00409a60
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, 0x188
mov dword [ebx + 0x10], eax
jmp 0x40ae1b
push 0x477c58
call fcn.004087e0
mov edx, dword [esp + 0x58]
push edx
call fcn.004087e0
add esp, 8
jmp 0x40b129
cmp eax, 0x4381
je 0x40ae02
cmp eax, 0x4483
je 0x40ae02
cmp eax, 0x4581
jmp 0x40ac0d
cmp eax, 0x5881
jg 0x40ad6d
je 0x40ae02
sub eax, 0x4881
je 0x40ae02
sub eax, 2
je 0x40ae02
sub eax, 0xfe
jmp 0x40ac0d
cmp eax, 0x5b81
je 0x40ae02
cmp eax, 0x6283
je 0x40ae02
cmp eax, 0x6a81
jmp 0x40ac0d
cmp eax, 0xa382
jg 0x40adcf
je 0x40ae02
cmp eax, 0x8583
jg 0x40adb7
je 0x40ae02
cmp eax, 0x7881
je 0x40ae02
cmp eax, 0x7a81
je 0x40ae02
cmp eax, 0x8383
jmp 0x40ac0d
cmp eax, 0x8783
je 0x40ae02
cmp eax, 0x9f82
je 0x40ae02
cmp eax, 0xa182
jmp 0x40ac0d
cmp eax, 0xe182
jg 0x40adf0
je 0x40ae02
cmp eax, 0xa582
je 0x40ae02
cmp eax, 0xa782
je 0x40ae02
cmp eax, 0xc182
jmp 0x40ac0d
cmp eax, 0xe382
je 0x40ae02
cmp eax, 0xe582
jne 0x40ac13
cmp dword [esp + 0x34], 0
jne 0x40ac13
mov dword [esp + 0x34], 1
jmp 0x40ae1b
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 0x40a9f0
jmp 0x40af17
mov ebp, dword [esp + 0x18]
mov ax, word [0x477c8c]
mov cl, byte [0x477c8e]
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, 0x170
push edx
push eax
sub esp, 0x170
mov edi, esp
add esi, 0x7cefc8
mov ecx, 0x5c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x210]
push ecx
call fcn.00409a60
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 + 0x3823c]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
add esp, 0x188
mov dword [ecx + 0x10], eax
call dword [0x476370]
cmp dword [0xf1e5fc], 1
push 0x2000
jne 0x40b02d
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 0x40b126
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.004541b4
add esp, 0x58168
ret