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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ab34
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x481330]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x481330]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov esi, ecx
push 1
push str.edtPath
lea ebx, [esi + 0x358]
push ebx
mov dword [esp + 0x2c], esi
call fcn.0041c413
cmp dword [esi + 0x4b8], 8
jb 0x404bda
mov ecx, dword [esi + 0x4a4]
jmp 0x404be0
lea ecx, [esi + 0x4a4]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
push esi
call fcn.004051c0
mov eax, dword [esi + 0x4fc]
mov edx, dword [eax + 0x658]
lea ecx, [eax + 0x658]
mov eax, dword [edx + 0x24]
call eax
push 1
push str.lstFiles
push ebx
call fcn.0041c413
cmp dword [esi + 0x4f4], 0
mov edx, dword [eax]
mov edx, dword [edx + 0xe0]
setne cl
movzx ecx, cl
push ecx
mov ecx, eax
call edx
push 1
push str.layNoFiles
push ebx
call fcn.0041c413
cmp dword [esi + 0x4f4], 0
mov edx, dword [eax]
mov edx, dword [edx + 0xe0]
sete cl
movzx ecx, cl
push ecx
mov ecx, eax
call edx
cmp dword [esi + 0x4f4], 0
je 0x405197
mov eax, dword [esi + 0x4f0]
mov ebx, dword [esi + 0x4dc]
mov edi, dword [eax]
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
test ebx, ebx
je 0x404c8c
cmp ebx, dword [esp + 0x34]
je 0x404c91
call fcn.00451615
cmp edi, dword [esp + 0x38]
je 0x405197
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x1b0], 1
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], eax
push eax
lea edx, [esi + 0x14]
push edx
push eax
push eax
push ecx
mov dword [esp + 0x1e4], eax
mov eax, esp
lea ecx, [esp + 0x88]
mov dword [esp + 0x38], esp
mov dword [eax], str.listitem_general.xml
call fcn.0041edef
mov dword [esp + 0x24], eax
mov ecx, eax
test eax, eax
jne 0x404cf6
mov ecx, dword [esi + 0xf8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
push 0
push str.layFile
push 0x41b91c
call edx
mov dword [esp + 0x30], eax
test eax, eax
je 0x4050ab
push 0x6e0
call fcn.00451743
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1d0], 1
test esi, esi
je 0x404d7c
test ebx, ebx
jne 0x404d57
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x404d4c
call fcn.00451615
cmp dword [edi + 0x20], 8
jb 0x404d5b
mov ecx, dword [edi + 0xc]
jmp 0x404d5e
mov eax, dword [ebx]
jmp 0x404d42
lea ecx, [edi + 0xc]
call fcn.00404970
mov ebx, eax
call fcn.0041d731
mov dword [esi + 0x6d8], ebx
mov ebx, dword [esp + 0x14]
mov dword [esi], vtable.CIconLabel.0
jmp 0x404d7e
xor esi, esi
mov byte [esp + 0x1d0], 0
mov eax, dword [esi]
mov edx, dword [eax + 0x128]
push str.6_6_6_0
push str.padding
mov ecx, esi
mov dword [esp + 0x30], esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
push 0x10
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
push 0x10
mov ecx, esi
call edx
push 0x6d8
call fcn.00451743
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1d0], 2
test eax, eax
je 0x404de8
mov esi, eax
call fcn.0041d731
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x404dee
xor esi, esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1d0], 0
test ebx, ebx
jne 0x404e16
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x404e0b
call fcn.00451615
cmp dword [edi + 0x3c], 8
jb 0x404e1a
mov eax, dword [edi + 0x28]
jmp 0x404e1d
mov eax, dword [ebx]
jmp 0x404e01
lea eax, [edi + 0x28]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
test ebx, ebx
jne 0x404e62
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x404e3c
call fcn.00451615
cmp dword [edi + 0x38], 0x19
jbe 0x404e7f
test ebx, ebx
jne 0x404e66
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x404e57
call fcn.00451615
cmp dword [edi + 0x3c], 8
jb 0x404e6a
mov eax, dword [edi + 0x28]
jmp 0x404e6d
mov eax, dword [ebx]
jmp 0x404e32
mov eax, dword [ebx]
jmp 0x404e4d
lea eax, [edi + 0x28]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x128]
push str.tooltip
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
push 0x15e
mov ecx, esi
call eax
push 0x6d8
call fcn.00451743
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1d0], 3
test eax, eax
je 0x404eb8
mov esi, eax
call fcn.0041d731
mov ebx, eax
jmp 0x404eba
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1d0], 0
test eax, eax
jne 0x404ee6
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x404edb
call fcn.00451615
cmp dword [edi + 0x5c], 8
jb 0x404eea
mov eax, dword [edi + 0x48]
jmp 0x404eed
mov eax, dword [eax]
jmp 0x404ed1
lea eax, [edi + 0x48]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x3c]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
push 0x8c
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x128]
push str.center
push str.align
mov ecx, ebx
call eax
push 0x6d8
call fcn.00451743
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1d0], 4
test eax, eax
je 0x404f46
mov esi, eax
call fcn.0041d731
mov edi, eax
jmp 0x404f48
xor edi, edi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1d0], 0
test eax, eax
jne 0x404fd1
call fcn.00451615
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x14]
jne 0x404f6d
call fcn.00451615
cmp byte [esi + 0x40], 0
jne 0x40502b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x404fd5
call fcn.00451615
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x404f90
call fcn.00451615
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
push ecx
push edx
lea eax, [esp + 0x60]
push eax
call fcn.0040acd1
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1d4], 5
call fcn.00402fa0
add esp, 4
mov esi, 8
mov byte [esp + 0x1d0], 6
cmp dword [eax + 0x18], esi
jb 0x404fd9
mov eax, dword [eax + 4]
jmp 0x404fdc
mov eax, dword [eax]
jmp 0x404f5f
mov eax, dword [eax]
jmp 0x404f86
add eax, 4
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x3c]
mov ecx, edi
call eax
cmp dword [esp + 0x54], esi
jb 0x404ff9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0045164f
add esp, 4
xor edx, edx
mov byte [esp + 0x1d0], dl
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], dx
jb 0x40502b
mov eax, dword [esp + 0x5c]
push eax
call fcn.0045164f
add esp, 4
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
push 0x50
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x128]
push str.right
push str.align
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x128]
push str.0_0_10_0
push str.padding
mov ecx, edi
call eax
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 0x658]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + 0x14]
add esi, 0x658
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push edi
mov ecx, esi
call edx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x4050f0
call fcn.00451615
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4050c0
call fcn.00451615
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 8]
push eax
mov edx, str.fileItem_
lea edi, [esp + 0x5c]
call fcn.00409380
add esp, 4
mov edi, 8
mov byte [esp + 0x1d0], 7
cmp dword [eax + 0x18], edi
jb 0x4050f4
mov eax, dword [eax + 4]
jmp 0x4050f7
mov eax, dword [ebx]
jmp 0x4050b6
add eax, 4
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov byte [esp + 0x1d0], 0
cmp dword [esp + 0x70], edi
jb 0x405120
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0045164f
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x4fc]
lea ecx, [eax + 0x658]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
call edx
mov dword [esp + 0x1d0], 0xffffffff
mov eax, dword [esp + 0x74]
test eax, eax
je 0x405154
push eax
call fcn.00451311
add esp, 4
mov eax, dword [esp + 0x78]
test eax, eax
je 0x405165
push eax
call fcn.00451311
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405193
call fcn.00451615
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x40517e
call fcn.00451615
mov eax, dword [ebx]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov edi, eax
jmp 0x404c82
mov eax, dword [eax]
jmp 0x405174
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00451137
mov esp, ebp
pop ebp
ret