Function at 0x40ae34
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x410c20], 0
jne 0x40b1c3
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x4c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov esi, dword [edx + 0x18]
test esi, esi
je 0x40af64
mov ecx, dword [esi + 0x3c]
xor eax, eax
add ecx, esi
cmp byte [eax + 0x412334], 0
je 0x40ae8c
inc eax
cmp eax, 0x2357
jne 0x40ae6c
mov eax, dword [0x4120fc]
sub eax, 0x4c489d7c
mov dword [0x412260], eax
mov eax, dword [0x411f10]
mov ecx, dword [ecx + 0x78]
xor eax, 0xbb222937
mov dword [0x4120fc], eax
mov eax, dword [0x412260]
lea edi, [eax + 0x44babf13]
mov dword [0x411f10], edi
test ecx, ecx
je 0x40af5b
mov dword [ebp - 0x24], edx
mov edx, edi
or edi, 0xbb74fbdf
mov dword [esp + 4], eax
or edx, 0xa8747092
mov dword [esp], 0x412bbc
mov dword [ebp - 0x1c], edx
xor edx, 0x17817109
mov dword [ebp - 0x20], edx
mov dword [0x4120fc], edx
mov dword [ebp - 0x28], ecx
mov dword [0x4120a8], edi
call fcn.0040dae0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.om_ET
xor eax, 0x166068e2
mov dword [esp + 8], str.sw_KE
lea ebx, [esi + ecx]
mov dword [esp + 4], eax
mov dword [esp], 0x4137e4
mov dword [0x411f10], eax
call fcn.0040d2ec
imul eax, dword [ebp - 0x20], 0xee54e611
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x24]
add ecx, esi
mov dword [0x412260], eax
mov eax, dword [ecx]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x40af5b
mov eax, dword [ecx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x40af6f
mov edx, dword [edx]
mov edi, esi
jmp 0x40ae5a
xor eax, eax
test ebx, ebx
jne 0x40af71
jmp 0x40b1bb
mov edi, esi
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x18]
mov dword [0x412c98], edi
add eax, edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x20]
add eax, edi
mov dword [ebp - 0x24], eax
mov eax, dword [0x4120fc]
lea edx, [eax + 0x6ea16cdb]
mov dword [0x411f10], edx
mov edx, dword [ebx + 0x24]
add edx, edi
mov dword [ebp - 0x28], edx
xor edx, edx
cmp byte [edx + str.io_error], 0
je 0x40afc3
inc edx
cmp edx, 0x279
jne 0x40afa5
lea edx, [eax + 0x2dff4e3a]
mov dword [0x411f10], edx
imul eax, eax, 0xa219a570
mov edx, dword [0x4120a8]
dec esi
xor ebx, ebx
mov dword [esp + 8], 0x412bbc
mov dword [esp + 0xc], edx
lea ecx, [edx - 0xb51e3ea]
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.lo_LA
mov dword [esp], str.sw_KE
mov dword [0x4120fc], ecx
mov dword [ebp - 0x1c], ecx
mov dword [0x412260], eax
call fcn.0040ed78
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
and ecx, 0x58a573cb
and eax, 0x64a3d533
mov dword [ebp - 0x30], ecx
mov dword [0x4120a8], eax
mov eax, dword [0x411f10]
mov dword [ebp - 0x20], eax
add eax, 0x3a38f2c3
mov dword [ebp - 0x1c], eax
mov dword [0x411f10], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + esi*4]
add eax, edi
cmp word [eax], 0x775a
jne 0x40b084
mov dword [esp], eax
mov edx, dword [ebp - 0x30]
lea ecx, [ebx*8 + 0x410c24]
mov dword [ebp - 0x34], ecx
mov dword [0x412260], edx
call fcn.0040ae08
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [ebx*8 + 0x410c24], eax
mov eax, dword [ebp - 0x28]
inc ebx
movzx eax, word [eax + esi*2]
mov eax, dword [edx + eax*4]
mov dword [ecx + 4], eax
cmp ebx, 0x226
je 0x40b08f
lea eax, [esi - 1]
test esi, esi
je 0x40b08f
mov esi, eax
jmp 0x40b037
mov dword [0x410c20], ebx
dec ebx
test ebx, ebx
jne 0x40b0a4
mov eax, 1
jmp 0x40b1bb
xor edi, edi
mov eax, dword [edi*8 + 0x410c28]
inc edi
mov dword [ebp - 0x24], eax
mov eax, dword [edi*8 + 0x410c28]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp eax, esi
jae 0x40b1ae
mov eax, dword [edi*8 + 0x410c1c]
mov ecx, 0x4137e4
mov esi, 0xc9
mov dword [ebp - 0x2c], eax
mov eax, dword [edi*8 + 0x410c24]
mov dword [edi*8 + 0x410c1c], eax
movsx eax, byte [ecx]
inc ecx
test al, al
je 0x40b129
add esi, eax
cmp esi, 0x37b
jbe 0x40b0e8
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0x412334
mov dword [esp + 8], str.lo_LA
and eax, 0x1f6a16bc
mov dword [esp], 0x4137e4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
call fcn.0040d2ec
mov eax, dword [ebp - 0x20]
mov esi, dword [0x4120fc]
mov dword [esp + 8], 0x41328c
mov dword [esp + 4], str.sw_KE
lea ecx, [eax + 0x54257769]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp], str.lo_LA
mov dword [0x412260], ecx
mov dword [ebp - 0x30], ecx
call fcn.0040ed78
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], esi
or esi, 0x27280926
mov dword [esp], str.io_error
mov dword [edi*8 + 0x410c20], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi*8 + 0x410c24], eax
call fcn.0040dae0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov dword [0x4120fc], esi
or ecx, 0x5e8bb24b
mov dword [edi*8 + 0x410c28], eax
mov dword [0x4120a8], ecx
cmp edi, ebx
jb 0x40b0a6
jmp 0x40b095
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
ret