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

Disassembly:
sub esp, 0x944
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x940], eax
push ebx
push esi
mov esi, dword [esp + 0x950]
mov eax, dword [esi + 0x114]
xor ebx, ebx
push str.CreateToc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
call fcn.004e4630
add esp, 4
test dword [esi + 0xa168], 0x1000000
jne 0x53960c
push ebp
xor ebp, ebp
cmp dword [esi + 0x5e4], ebx
push edi
jle 0x53835e
lea ebx, [ebx]
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebp*4]
cmp dword [edx + 0x44], ebx
lea eax, [ecx + ebp*4]
je 0x538351
mov eax, edx
mov ebx, dword [eax + 0xc]
mov ecx, dword [eax + 0x44]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x2c], ecx
jle 0x538351
mov edx, dword [esp + 0x2c]
cmp word [edx + edi*2], 0
je 0x53834a
push 0
push 2
push edi
push ebp
push esi
call fcn.004ae330
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebp*4]
add esp, 0x14
cmp dword [ecx + 0x44], 0
je 0x53833b
push 0
push 3
push edi
push ebp
push esi
call fcn.004ae330
add esp, 0x14
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ebp*4]
cmp dword [eax + 0x44], 0
je 0x538351
add edi, 1
cmp edi, ebx
jl 0x538303
add ebp, 1
xor ebx, ebx
cmp ebp, dword [esi + 0x5e4]
jl 0x5382e0
mov dword [esi + 0x5bf4], ebx
mov dword [esi + 0x5bf0], ebx
xor ebp, ebp
lea esp, [esp]
mov ecx, dword [esi + 0x5e4]
cmp ebp, ecx
mov edi, ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], edi
jge 0x5383ab
mov edx, dword [esi + 0x138]
lea eax, [edx + ebp*4]
mov edx, 0x1000000
mov ebp, dword [eax]
test dword [ebp + 0x38], edx
jne 0x5383a7
add edi, 1
add eax, 4
cmp edi, dword [esi + 0x5e4]
jl 0x538392
mov dword [esp + 0x14], edi
cmp edi, ecx
je 0x539549
push edi
push esi
mov ebp, edi
mov byte [esp + 0x180], 0
mov byte [esp + 0x1a], 0x31
mov byte [esp + 0x1b], 0x31
mov byte [esp + 0x27], 0x39
mov byte [esp + 0x19], 0x39
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebx
call fcn.004ad140
mov edx, dword [esi + 0x138]
mov edx, dword [edx + edi*4]
xor ecx, ecx
add esp, 8
cmp dword [edx + 0xc], ecx
jle 0x5385cd
jmp 0x538400
movzx edx, word [eax + ecx*2]
mov edi, dword [esi + 0x3434]
movzx ebx, dx
imul ebx, ebx, 0x170
cmp dword [ebx + edi + 0x144], 9
je 0x53843f
mov edx, dword [esi + 0x138]
mov edi, dword [esp + 0x14]
mov edx, dword [edx + edi*4]
add ecx, 1
cmp ecx, dword [edx + 0xc]
jl 0x538400
mov dword [esp + 0x34], 1
jmp 0x5385db
movzx eax, dx
imul eax, eax, 0x170
mov edi, dword [eax + edi + 0x54]
test edi, edi
mov dword [esp + 0x2c], eax
je 0x5385c9
push edi
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x178]
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, edi
jle 0x538527
mov bl, byte [esp + 0x13]
jmp 0x538490
mov cl, byte [esp + edi + 0x177]
cmp cl, 0x5c
jne 0x5384bb
mov al, byte [esp + edi + 0x178]
cmp al, 0x6f
jne 0x5384af
mov dword [esp + 0x34], 1
cmp al, 0x66
jne 0x5384bb
mov dword [esp + 0x40], 1
cmp byte [esp + edi + 0x178], 0x2d
jne 0x5384d9
cmp dword [esp + 0x34], 0
je 0x5384d9
mov dl, byte [esp + edi + 0x179]
mov bl, cl
mov byte [esp + 0x11], dl
lea eax, [esp + 0x178]
push eax
add edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, eax
jl 0x538490
cmp bl, 0x31
mov byte [esp + 0x13], bl
jae 0x5384fd
mov bl, 0x31
mov byte [esp + 0x13], bl
mov al, byte [esp + 0x11]
cmp al, 0x39
jbe 0x53850e
mov byte [esp + 0x11], 0x39
mov al, byte [esp + 0x11]
cmp bl, al
jbe 0x538518
mov bl, al
mov byte [esp + 0x13], bl
cmp dword [esp + 0x34], 0
je 0x538527
mov byte [esp + 0x12], bl
mov byte [esp + 0x1f], al
lea ecx, [esp + 0x178]
push ecx
call fcn.005cb7a4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 4
push str.heading
lea edx, [esp + 0x568]
push edx
call ebx
lea eax, [esp + 0x564]
push eax
lea ecx, [esp + 0x17c]
push ecx
call fcn.005add20
add esp, 8
test eax, eax
je 0x5385a9
lea ecx, [esp + 0x564]
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x538572
sub ecx, edi
add eax, ecx
mov cl, byte [eax]
cmp cl, 0x31
mov al, byte [eax + 2]
mov byte [esp + 0x12], cl
mov byte [esp + 0x1f], al
jae 0x538597
mov cl, 0x31
mov byte [esp + 0x12], cl
cmp al, 0x39
jbe 0x5385a1
mov al, 0x39
mov byte [esp + 0x1f], al
cmp cl, al
jbe 0x5385a9
mov byte [esp + 0x12], al
mov edx, dword [esi + 0x3434]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + edx + 0x54]
push ecx
lea edx, [esp + 0x17c]
push edx
call ebx
cmp dword [esp + 0x40], 0
jne 0x5385d7
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], 1
jmp 0x5385db
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x5e4]
jge 0x53861b
mov eax, dword [esi + 0x138]
lea ecx, [edi*4]
add eax, ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
test edx, 0x1000000
jne 0x538605
cmp dword [ecx + 0xc], 0
jmp 0x53860b
test edx, 0x800
jne 0x53861b
add edi, 1
add eax, 4
cmp edi, dword [esi + 0x5e4]
jl 0x5385f2
lea ebx, [edi - 1]
cmp ebx, ebp
jge 0x53862c
add ebp, 1
xor ebx, ebx
jmp 0x538370
mov edi, ebx
sub edi, ebp
push 0x44
add edi, 1
push edi
push ebp
push esi
call fcn.004f2400
mov eax, dword [esi + 0x5d8]
xor ecx, ecx
add esp, 0x10
cmp eax, ebx
setg cl
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x4b48]
test ecx, ecx
je 0x53866a
cmp dword [esi + 0x4b3c], ebx
jle 0x53866a
mov edx, 1
jmp 0x53866c
xor edx, edx
test ecx, ecx
mov dword [esp + 0x48], edx
je 0x538683
cmp dword [esi + 0x4b40], ebx
jle 0x538683
mov ecx, 1
jmp 0x538685
xor ecx, ecx
cmp dword [esp + 0x44], 0
mov dword [esp + 0x2c], ecx
je 0x538698
sub eax, edi
mov dword [esi + 0x5d8], eax
test edx, edx
je 0x5386a2
sub dword [esi + 0x4b3c], edi
test ecx, ecx
je 0x5386ac
sub dword [esi + 0x4b40], edi
cmp dword [esi + 0x5bf0], 0
jne 0x5386d3
push 0
push ebp
push esi
mov dword [esi + 0x5bf0], 1
call fcn.004f6e40
add esp, 0xc
mov dword [esi + 0x5c00], eax
jmp 0x5386dd
mov dword [esi + 0x5bf4], 1
xor eax, eax
cmp dword [esi + 0x5e4], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
jle 0x539542
mov edx, dword [esi + 0x138]
mov eax, dword [esp + 0x14]
mov ebx, dword [edx + eax*4]
mov edi, dword [ebx + 0xc]
test edi, edi
lea eax, [edx + eax*4]
mov dword [esp + 0x28], eax
je 0x53952b
cmp edi, 1
jne 0x538728
mov ecx, dword [ebx + 0x38]
test cl, 3
je 0x538728
test cl, 4
jne 0x53952b
mov ecx, dword [ebx + 0x14]
mov edx, dword [esi + 0x2b38]
imul ecx, ecx, 0x58
test dword [ecx + edx + 0x18], 0x3000
jne 0x53952b
cmp edi, 1
jle 0x53878c
mov ecx, dword [ebx + 0x38]
test cl, 3
je 0x53878c
test cl, 4
je 0x53878c
cmp dword [esi + 0x6a4], 0
jne 0x53878c
mov ecx, ebx
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx]
sub eax, 1
xor ecx, ecx
test eax, eax
jle 0x538784
lea ecx, [ecx]
mov dl, byte [edi + ecx]
cmp dl, 0x20
je 0x53877d
cmp dl, 9
jne 0x538784
add ecx, 1
cmp ecx, eax
jl 0x538770
cmp ecx, eax
je 0x53952b
cmp dword [esp + 0x30], 0
je 0x5387aa
test byte [ebx + 0x38], 3
je 0x53952b
mov dword [esp + 0x30], 0
jmp 0x53952b
mov edi, dword [esp + 0x14]
test edi, edi
mov dword [esp + 0x20], 0
je 0x5387cb
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 4]
test byte [ecx + 0x38], 3
je 0x538853
push edi
push esi
call fcn.004ad140
mov edx, dword [esi + 0x138]
mov edx, dword [edx + edi*4]
xor ecx, ecx
add esp, 8
cmp dword [edx + 0xc], ecx
mov dword [esp + 0x18], ecx
jle 0x538822
mov ebx, dword [esi + 0x138]
mov ebx, dword [ebx + edi*4]
mov ebx, dword [ebx + 0xc]
mov edx, dword [esi + 0x3434]
mov dword [esp + 0x28], ebx
nop
movzx ebx, word [eax + ecx*2]
imul ebx, ebx, 0x170
test byte [ebx + edx + 0x134], 0x40
je 0x538819
add dword [esp + 0x18], 1
add ecx, 1
cmp ecx, dword [esp + 0x28]
jl 0x538800
push edi
push esi
call fcn.004ad1d0
mov eax, dword [esi + 0x138]
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0x20]
add esp, 8
test byte [ebx + 0x38], 3
je 0x538846
test eax, eax
jle 0x538846
add eax, 1
cmp eax, dword [ebx + 0xc]
jl 0x538853
mov dword [esp + 0x20], 1
test dword [ebx + 0x38], 0x1000000
jne 0x53952b
mov ecx, dword [ebx + 0x14]
mov edx, dword [esi + 0x2b38]
imul ecx, ecx, 0x58
mov ebx, dword [ecx + edx + 0x24]
test ebx, ebx
je 0x53952b
xor eax, eax
cmp dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
je 0x53897c
push str.heading
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
imul ebx, ebx, 0x10c
mov edi, eax
mov eax, dword [esi + 0x3894]
lea ecx, [eax + ebx + 4]
push ecx
lea edx, [esp + 0x568]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.heading
lea eax, [esp + 0x568]
push eax
mov byte [esp + edi + 0x56c], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x538926
push str.heading
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi + 0x3894]
lea edx, [ecx + ebx + 4]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [edi + 1]
cmp eax, ecx
jle 0x538918
mov edx, dword [esi + 0x3894]
add edx, ebx
mov al, byte [edx + edi + 5]
cmp al, 0x20
je 0x538918
cmp al, 0x2c
jne 0x538926
mov eax, dword [esi + 0x3894]
add eax, ebx
mov al, byte [eax + edi + 4]
jmp 0x538951
mov ecx, dword [esi + 0x3894]
cmp dword [ecx + ebx + 0xe0], 0
lea ebx, [ecx + ebx + 0xe0]
mov dword [esp + 0x28], 0
jl 0x53897c
mov al, byte [ebx]
mov dword [esp + 0x28], 1
add al, 0x31
cmp al, byte [esp + 0x13]
mov byte [esp + 0x3c], al
jb 0x538961
cmp al, byte [esp + 0x11]
jbe 0x53896d
cmp al, byte [esp + 0x12]
jb 0x538974
cmp al, byte [esp + 0x1f]
ja 0x538974
cmp dword [esp + 0x20], 0
je 0x5389a6
mov dword [esp + 0x28], 0
cmp dword [esp + 0x40], 0
je 0x53952b
mov edx, dword [esi + 0x138]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
test byte [ecx + 0x3c], 4
je 0x53952b
mov dword [esp + 0x18], 1
mov edx, dword [esi + 0x5e4]
add edx, 1
push edx
push esi
call fcn.004e2e50
add esp, 8
test eax, eax
je 0x53960a
push 0x42
mov ebx, 1
push ebx
push ebp
push esi
call fcn.004f2400
mov edi, dword [esp + 0x24]
add esp, 0x10
cmp edi, ebp
jl 0x5389e1
add edi, ebx
mov dword [esp + 0x14], edi
cmp dword [esp + 0x44], 0
je 0x5389ee
add dword [esi + 0x5d8], ebx
cmp dword [esp + 0x48], 0
je 0x5389fb
add dword [esi + 0x4b3c], ebx
cmp dword [esp + 0x2c], 0
je 0x538a08
add dword [esi + 0x4b40], ebx
cmp dword [esp + 0x28], 0
je 0x538c66
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + 0xc]
push edx
push 0
push ebp
push esi
call fcn.00494d30
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + 0xc]
push edx
push 0
push ebp
push 0
push edi
push esi
call fcn.004efc30
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edi*4]
mov edx, dword [eax + ebp*4]
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x14], eax
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebp*4 + 4]
lea eax, [ecx + ebp*4]
mov eax, dword [eax]
mov ecx, dword [edx + 0x2c]
mov dword [eax + 0x2c], ecx
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebp*4 + 4]
lea eax, [edx + ebp*4]
mov edx, dword [eax]
mov eax, dword [ecx + 0x30]
mov dword [edx + 0x30], eax
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebp*4]
mov eax, dword [eax + edi*4]
mov edx, dword [ecx + 0xc]
add esp, 0x28
test dword [eax + 0x38], 0x4000000
je 0x538ae6
mov ebx, dword [eax]
xor ecx, ecx
test edx, edx
jle 0x538ae6
cmp byte [ebx + ecx], 5
je 0x538ab0
add ecx, 1
cmp ecx, edx
jl 0x538aa1
jmp 0x538ae6
cmp ecx, edx
jge 0x538ae6
mov edx, dword [eax + 0xc]
add ecx, 1
push ecx
push edx
push ebp
push esi
call fcn.00494d30
mov eax, dword [esi + 0x138]
mov eax, dword [eax + ebp*4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov al, byte [esi + 0xb50]
add esp, 0x10
mov byte [ecx + edx - 1], al
mov dword [esp + 0x30], 1
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edi*4]
test dword [ecx + 0x38], 0x800
je 0x538b39
mov ecx, dword [eax + ebp*4]
mov eax, dword [ecx + 0xc]
test eax, eax
mov ecx, dword [ecx]
jle 0x538b39
cmp byte [ecx + eax - 1], 0x14
lea edx, [ecx + eax - 1]
jne 0x538b39
cmp eax, 1
je 0x538b31
mov cl, byte [ecx + eax - 2]
cmp cl, byte [esi + 0xb50]
jne 0x538b31
lea edx, [eax - 1]
push edx
push eax
push ebp
push esi
call fcn.00494d30
add esp, 0x10
jmp 0x538b39
mov al, byte [esi + 0xb50]
mov byte [edx], al
mov ecx, dword [esi + 0x138]
mov eax, dword [ecx + ebp*4]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jle 0x538be5
mov ecx, dword [ecx + edi*4]
test byte [ecx + 0x38], 3
je 0x538be5
mov edi, dword [eax]
mov al, byte [edi + ebx - 1]
cmp al, byte [esi + 0x58b4]
mov byte [esp + 0x58], al
je 0x538b84
mov edx, dword [esp + 0x58]
push edx
lea eax, [esi + 0x99c5]
push eax
call fcn.004e1ee0
add esp, 8
test eax, eax
je 0x538b8e
mov cl, byte [esi + 0xb50]
mov byte [edi + ebx - 1], cl
push ebp
push esi
call fcn.004ad140
mov ecx, dword [esi + 0x3434]
mov edi, eax
movzx eax, word [edi + ebx*2 - 2]
mov edx, eax
imul edx, edx, 0x170
add esp, 8
test byte [edx + ecx + 0x134], 0x40
je 0x538bdb
cmp ebx, 2
jl 0x538bc8
mov dx, word [edi + ebx*2 - 4]
mov word [edi + ebx*2 - 2], dx
jmp 0x538bdb
push 0
push 0x40
push eax
push esi
call fcn.004ab920
add esp, 0x10
mov word [edi + ebx*2 - 2], ax
push ebp
push esi
call fcn.004ad1d0
add esp, 8
push ebp
push esi
call fcn.004ad140
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebp*4]
xor edi, edi
add esp, 8
or ebx, 0xffffffff
cmp dword [edx + 0xc], edi
mov dword [esp + 0x24], eax
jle 0x538ecf
lea ebx, [ebx]
test edi, edi
mov ecx, ebx
movzx ebx, word [eax + edi*2]
je 0x538c29
cmp ecx, ebx
jne 0x538c29
mov cx, word [eax + edi*2 - 2]
mov word [eax + edi*2], cx
jmp 0x538c50
mov eax, dword [esi + 0x10c]
push 0
push ebp
lea edx, [eax + eax*4]
add edx, edx
push 0
add edx, edx
push edx
push ebx
push esi
call fcn.004a9ee0
mov ecx, dword [esp + 0x3c]
mov word [ecx + edi*2], ax
add esp, 0x18
mov eax, ecx
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebp*4]
add edi, 1
cmp edi, dword [ecx + 0xc]
jl 0x538c10
jmp 0x538ecf
cmp dword [esp + 0x18], 0
je 0x538ecf
mov edx, dword [esp + 0x14]
push edx
or edi, 0xffffffff
push esi
mov dword [esp + 0x20], edi
call fcn.004ad140
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x138]
mov edx, dword [eax + ecx*4]
xor ebx, ebx
add esp, 8
cmp dword [edx + 0xc], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x3c], 0x31
jle 0x53952b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
jne 0x538ce9
movzx ecx, word [eax + ebx*2]
mov edx, dword [esi + 0x3434]
imul ecx, ecx, 0x170
cmp dword [ecx + edx + 0x144], 0xd
jne 0x538d6a
cmp ebx, 0xffffffff
mov ecx, ebx
mov dword [esp + 0x18], ecx
je 0x538d6a
cmp dword [esp + 0x20], 0
jne 0x538d4a
cmp ecx, ebx
jne 0x538d4a
movzx eax, word [eax + ebx*2]
mov ecx, dword [esi + 0x3434]
imul eax, eax, 0x170
mov edi, dword [eax + ecx + 0x54]
test edi, edi
je 0x538d4a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x538d4a
cmp byte [edi], 0x5c
jne 0x538d85
cmp byte [edi + 1], 0x74
jne 0x538d85
cmp byte [edi + 2], 0x63
jne 0x538d85
cmp byte [edi + 3], 0x6c
jne 0x538d85
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 5
jl 0x538d4a
mov dl, byte [edi + 4]
mov byte [esp + 0x3c], dl
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + ebx*2]
mov edx, dword [esi + 0x3434]
imul ecx, ecx, 0x170
cmp dword [ecx + edx + 0x144], 0xd
mov edi, ebx
jne 0x538d8f
mov ecx, dword [esi + 0x138]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + edx*4]
add ebx, 1
cmp ebx, dword [ecx + 0xc]
jl 0x538cb3
jmp 0x538d92
mov dword [esp + 0x20], 0
jmp 0x538d4a
lea edi, [ebx - 1]
cmp dword [esp + 0x18], 0xffffffff
je 0x53952b
cmp edi, 0xffffffff
jne 0x538db5
mov edx, dword [esi + 0x138]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
mov edi, dword [ecx + 0xc]
sub edi, 1
mov ebx, dword [esp + 0x18]
sub edi, ebx
add edi, 1
push edi
push 0
push ebp
push esi
call fcn.00494d30
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x24]
push ecx
push 0
push ebp
push ebx
push edx
push esi
call fcn.004efc30
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebp*4]
mov dword [ecx + 0x14], 0
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebp*4 + 4]
lea eax, [edx + ebp*4]
mov edx, dword [eax]
mov eax, dword [ecx + 0x2c]
mov dword [edx + 0x2c], eax
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebp*4 + 4]
lea eax, [ecx + ebp*4]
mov eax, dword [eax]
mov ecx, dword [edx + 0x30]
push ebp
push esi
mov dword [eax + 0x30], ecx
call fcn.004ad140
mov edx, dword [esi + 0x138]
mov dword [esp + 0x54], eax
mov eax, dword [edx + ebp*4]
xor edi, edi
add esp, 0x30
or ebx, 0xffffffff
cmp dword [eax + 0xc], edi
jle 0x538ecf
mov ecx, dword [esp + 0x24]
test edi, edi
mov eax, ebx
movzx ebx, word [ecx + edi*2]
je 0x538e60
cmp eax, ebx
jne 0x538e60
mov dx, word [ecx + edi*2 - 2]
mov word [ecx + edi*2], dx
jmp 0x538eba
mov edx, dword [esi + 0x3434]
mov ecx, ebx
imul ecx, ecx, 0x170
test byte [ecx + edx + 0x134], 0x40
mov eax, ebx
je 0x538e88
push 0
push 0x40
push ebx
push esi
call fcn.004ab920
add esp, 0x10
push 0
push 0
push eax
push esi
call fcn.004aba90
mov ecx, dword [esi + 0x10c]
push 0
lea ecx, [ecx + ecx*4]
push ebp
add ecx, ecx
push 0
add ecx, ecx
push ecx
push eax
push esi
call fcn.004a9ee0
mov edx, dword [esp + 0x4c]
add esp, 0x28
mov word [edx + edi*2], ax
mov ecx, edx
mov eax, dword [esi + 0x138]
mov edx, dword [eax + ebp*4]
add edi, 1
cmp edi, dword [edx + 0xc]
jl 0x538e47
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx]
xor ecx, ecx
test edx, edx
jle 0x538ef4
cmp byte [eax + ecx], 9
jne 0x538eed
mov byte [eax + ecx], 0x20
add ecx, 1
cmp ecx, edx
jl 0x538ee3
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebp*4]
mov edi, 1
cmp dword [edx + 0xc], edi
jle 0x538f42
cmp byte [eax + edi - 1], 0x20
jne 0x538f31
cmp byte [eax + edi], 0x20
jne 0x538f31
push 0x44
push 1
push edi
push ebp
push esi
call fcn.004ef770
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebp*4]
mov eax, dword [ecx]
add esp, 0x14
sub edi, 1
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebp*4]
add edi, 1
cmp edi, dword [ecx + 0xc]
jl 0x538f07
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ebp*4]
xor edi, edi
cmp dword [eax + 0xc], edi
jle 0x538fa4
mov ebx, 0x9c40
push edi
push ebp
push esi
call fcn.004a0bf0
imul eax, eax, 0x170
mov ecx, dword [esi + 0x3434]
add eax, ecx
add esp, 0xc
test dword [eax + 0x134], ebx
jne 0x538f81
cmp dword [eax + 0x144], 6
jne 0x538f93
push 0x44
push 1
push edi
push ebp
push esi
call fcn.004ef770
add esp, 0x14
sub edi, 1
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ebp*4]
add edi, 1
cmp edi, dword [eax + 0xc]
jl 0x538f57
mov ecx, dword [esi + 0x138]
mov eax, dword [ecx + ebp*4]
cmp dword [eax + 0x44], 0
lea edx, [ecx + ebp*4]
mov ecx, dword [eax + 0xc]
je 0x538fd7
test ecx, ecx
mov edx, eax
mov edi, dword [edx + 0x44]
jle 0x538fcd
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
push ebp
push esi
call fcn.004ad230
add esp, 8
cmp dword [esp + 0x28], 0
je 0x5390db
mov eax, dword [esi + 0x138]
mov ebx, dword [esp + 0x14]
mov edx, dword [eax + ebx*4]
mov ecx, dword [edx + 0x10]
test ecx, ecx
lea eax, [eax + ebx*4]
je 0x5390db
cmp dword [ecx + 0x8c], 0
je 0x5390db
test dword [edx + 0x38], 0x2000000
je 0x5390db
mov ecx, edx
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebx*4]
mov edi, eax
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x8c]
push ecx
lea edx, [esp + 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test edi, edi
jle 0x53907d
cmp byte [esp + edi + 0xb3], 0x20
je 0x53907d
push 0x5e9ef4
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push 0x42
push edi
push 0
push ebp
push esi
call fcn.004ef770
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ebp*4]
mov ebx, dword [eax]
push ebp
push esi
mov dword [esp + 0x3c], ebx
call fcn.004ad140
add esp, 0x1c
xor ecx, ecx
test edi, edi
mov dword [esp + 0x24], eax
jle 0x5390db
mov edx, ebx
lea ebx, [esp + 0xb4]
sub ebx, edx
mov dword [esp + 0x20], ebx
jmp 0x5390c4
mov ebx, dword [esp + 0x20]
mov bl, byte [ebx + edx]
mov byte [edx], bl
mov bx, word [eax + edi*2]
mov word [eax + ecx*2], bx
add ecx, 1
add edx, 1
cmp ecx, edi
jl 0x5390c0
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0xc]
push ebp
push esi
mov dword [esp + 0x20], eax
call fcn.004ad140
xor edi, edi
add esp, 8
cmp dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
mov ebx, 0xffff
jle 0x5391ba
mov eax, dword [esp + 0x54]
mov edi, edi
mov ecx, dword [esp + 0x24]
movzx ecx, word [ecx + edi*2]
cmp cx, bx
je 0x5391a1
movzx ebx, cx
mov ecx, dword [esi + 0x3434]
movzx edx, bx
imul edx, edx, 0x170
add ecx, edx
test byte [ecx + 0x134], 0x80
je 0x53914a
mov dword [ecx + 0x144], 9
jmp 0x5391a1
push edi
push ebp
lea edx, [esp + 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
neg eax
sbb eax, eax
lea ecx, [esp + 0x180]
and eax, ecx
push eax
push 9
push ebx
push esi
call fcn.004a9f90
mov ecx, dword [esi + 0x3434]
movzx eax, ax
movzx edx, ax
imul edx, edx, 0x170
add esp, 0x18
cmp dword [edx + ecx + 0x3c], 1
je 0x5391a1
push 0
push ebp
push 0
push 1
push eax
push esi
call fcn.004cae70
add esp, 0x18
movzx eax, ax
mov edx, dword [esp + 0x24]
mov word [edx + edi*2], ax
add edi, 1
cmp edi, dword [esp + 0x18]
jl 0x539110
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
push eax
push esi
call fcn.00535380
mov ebx, dword [esp + 0x1c]
add esp, 8
cmp dword [esp + 0x28], 0
mov edi, eax
je 0x5391f4
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 0x14]
mov ecx, dword [esi + 0x2b38]
imul eax, eax, 0x58
mov edx, dword [eax + ecx + 0x24]
mov dword [esp + 0x20], edx
jmp 0x5391fc
mov dword [esp + 0x20], 0
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebx*4]
push 0x58
lea eax, [esp + 0x60]
push eax
mov eax, dword [edx + 0x14]
imul eax, eax, 0x58
add eax, dword [esi + 0x2b38]
push eax
call fcn.004e29c0
mov edx, dword [esp + 0x8c]
mov eax, dword [esi + 0x3894]
imul edx, edx, 0x10c
mov ecx, edi
imul ecx, ecx, 0x10c
push 1
add ecx, eax
push ecx
add edx, eax
push edx
lea eax, [esp + 0x74]
push eax
push esi
mov dword [esp + 0xa8], 0
call fcn.004c9050
mov eax, dword [esp + 0x98]
add esp, 0x20
test eax, eax
jne 0x5392f2
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x5392ee
push 0xb8
push eax
lea ecx, [esp + 0xbc]
push ecx
call fcn.004e28a0
push 0xffffffffffffffff
push ebp
push esi
mov dword [esp + 0xcc], 1
call fcn.004f8120
mov edx, dword [esi + 0x500]
add esp, 0x18
push edx
push 0x5a0
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov cl, byte [esi + 0x5c08]
sub eax, 0x5a
mov dword [esp + 0xb8], eax
mov eax, dword [esi + 0x5c04]
lea edx, [esp + 0xb4]
mov dword [esp + 0x108], eax
mov eax, dword [esi + 0x39c]
push edx
push eax
mov byte [esp + 0x160], cl
call fcn.004c2d00
mov dword [esp + 0x4c], eax
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xc0]
push edx
mov edx, dword [esp + 0xc0]
push edi
push ecx
mov ecx, dword [esp + 0xac]
push edx
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa8]
push edx
mov edx, dword [esi + 0x138]
push eax
mov eax, dword [edx + ebx*4]
push ecx
mov ecx, dword [eax + 0x14]
push ecx
push esi
call fcn.004c2d90
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebp*4]
mov edx, dword [esp + 0x70]
push edx
push edi
push ebp
push esi
mov dword [ecx + 0x14], eax
call fcn.004cb590
mov eax, dword [esi + 0x138]
mov eax, dword [eax + ebp*4]
or dword [eax + 0x38], 0x1000000
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebx*4]
add esp, 0x60
test dword [ecx + 0x38], 0x801
jne 0x5393c9
cmp dword [esp + 0x30], 0
je 0x5393d0
mov eax, dword [eax + ebp*4]
or dword [eax + 0x38], 1
mov eax, dword [esi + 0x138]
mov edx, dword [eax + ebp*4]
test byte [edx + 0x38], 1
je 0x539528
mov ecx, dword [eax + ebx*4]
cmp dword [ecx + 0xc], 0
jle 0x539528
cmp dword [esi + 0x5bf8], 0
je 0x539528
cmp dword [esi + 0x5bf4], 0
mov eax, ecx
mov edx, dword [eax + 0xc]
mov edi, dword [eax + 0x34]
mov dword [esp + 0x18], edx
je 0x53942c
push 0
push 0
push 0
mov eax, edx
push 3
add eax, 0xffffffff
push eax
push ebx
push esi
call fcn.004ae210
add esp, 0x1c
jmp 0x539468
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x568]
push str.Heading_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x44], 1
push edi
push 0
lea eax, [esp + 0x578]
push eax
push 3
add ecx, 0xffffffff
push ecx
push ebx
push esi
call fcn.004ae470
add esp, 0x28
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x3a10]
lea edx, [edi + edi*8]
movsx eax, word [eax + edx*8 + 0x10]
push eax
lea ecx, [esp + 0x171]
push 0x5e90cc
push ecx
mov byte [esp + 0x178], 9
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebp*4]
mov edi, dword [ecx + 0xc]
push 0x42
push ebx
sub edi, 1
push edi
push ebp
push esi
call fcn.004ef770
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax]
add esp, 0x14
xor eax, eax
test ebx, ebx
jle 0x5394f1
add ecx, edi
lea esp, [esp]
mov dl, byte [esp + eax + 0x16c]
mov byte [ecx + eax], dl
add eax, 1
cmp eax, ebx
jl 0x5394e0
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x568]
push str.Toc_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x2c]
push edx
push 0
lea eax, [esp + 0x578]
push eax
push 2
add edi, 1
push edi
push ebp
push esi
call fcn.004ae470
add esp, 0x28
add ebp, 1
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esi + 0x5e4]
mov dword [esp + 0x14], eax
jl 0x5386f3
xor ebx, ebx
jmp 0x538370
mov ecx, dword [esi + 0x5e4]
cmp dword [esi + 0x5d8], ecx
jl 0x539560
lea edx, [ecx - 1]
mov dword [esi + 0x5d8], edx
mov edx, dword [esi + 0x138]
mov eax, dword [esi + 0x5d8]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0xc]
cmp dword [esi + 0x47c], eax
jl 0x539583
add eax, 0xffffffff
mov dword [esi + 0x47c], eax
cmp dword [esi + 0x47c], ebx
jge 0x539591
mov dword [esi + 0x47c], ebx
cmp dword [esi + 0x4b48], ebx
je 0x539600
cmp dword [esi + 0x4b3c], ecx
jl 0x5395aa
lea eax, [ecx - 1]
mov dword [esi + 0x4b3c], eax
mov eax, dword [esi + 0x4b3c]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0xc]
cmp dword [esi + 0x4b4c], eax
jl 0x5395c7
add eax, 0xffffffff
mov dword [esi + 0x4b4c], eax
cmp dword [esi + 0x4b4c], ebx
jge 0x5395d5
mov dword [esi + 0x4b4c], ebx
cmp dword [esi + 0x4b40], ecx
jl 0x5395e6
add ecx, 0xffffffff
mov dword [esi + 0x4b40], ecx
mov ecx, dword [esi + 0x4b40]
mov edx, dword [edx + ecx*4]
mov eax, dword [edx + 0xc]
cmp dword [esi + 0x4b50], eax
jle 0x539600
mov dword [esi + 0x4b50], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x114], eax
pop edi
pop ebp
mov ecx, dword [esp + 0x948]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005aac48
add esp, 0x944
ret