Function at 0x6224e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x98]
cmp dword [eax], 0
je 0x622739
mov ebx, 1
cmp ebx, 1
jne 0x62274f
mov ecx, dword [ebp + 0x98]
mov eax, dword [ecx]
push eax
call fcn.005e9b60
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
mov esi, eax
call fcn.005ed4f0
mov ecx, eax
call fcn.004adc70
push 0
push 0x3e8
push edx
push eax
call fcn.006fb030
mov edi, eax
mov eax, dword [esi]
mov ecx, edx
cdq
cmp edx, ecx
ja 0x622726
jb 0x622558
cmp eax, edi
jae 0x622726
mov ecx, dword [ebp + 0x98]
call fcn.005e9c80
mov esi, eax
cmp byte [esi + 4], 0x4b
jne 0x62257c
movzx edx, word [esi + 6]
push 0
push edx
push 0
call fcn.004024f0
add esp, 0xc
cmp byte [esi + 4], 0x43
jne 0x622591
xor eax, eax
mov ax, word [esi + 6]
push eax
call fcn.00402240
add esp, 4
cmp byte [esi + 4], 0x4c
jne 0x6225ac
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
call fcn.004015a0
cmp byte [esi + 4], 0x4d
jne 0x6225d5
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.005ee700
mov ecx, dword [esi + 0x18]
push ecx
call fcn.006fa390
add esp, 4
cmp byte [esi + 4], 0x49
jne 0x6225ea
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
mov ecx, ebp
call fcn.00621210
cmp byte [esi + 4], 0x5a
jne 0x622606
mov byte [ebp + 0xa8], 1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
mov ecx, ebp
call fcn.00621210
cmp byte [esi + 4], 0x56
jne 0x62268f
mov ecx, ebp
call fcn.00644760
fld dword [esi + 0x20]
mov edi, dword [eax + 0x40]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x28]
push str.dist__f
push eax
call fcn.006fadb0
mov edx, dword [edi]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call dword [edx + 0x60]
fld dword [esi + 0x24]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x28]
push str.pitch__f
push ecx
call fcn.006fadb0
mov edx, dword [edi]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call dword [edx + 0x60]
fld dword [esi + 0x28]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x28]
push str.yaw__f
push ecx
call fcn.006fadb0
mov edx, dword [edi]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call dword [edx + 0x60]
cmp byte [esi + 4], 0x59
jne 0x62271b
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x7a39fc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx + 4]
call fcn.005ed570
lea edx, [esp + 0x10]
push edx
push edi
mov ecx, eax
call fcn.004d8230
cmp al, byte [0x74666c]
jne 0x62271b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x62271b
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call dword [edx + 0x8c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x14]
add eax, 0x1dc
mov dword [eax], ecx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
push esi
call fcn.006fa390
add esp, 4
jmp 0x622728
xor ebx, ebx
mov edx, dword [ebp + 0x98]
cmp dword [edx], 0
jne 0x622503
jmp 0x62274f
mov ecx, dword [ebp + 0x24]
push 0x1e
push 0
mov dword [ebp + 0x90], 0
call fcn.004ae170
mov eax, dword [ebp + 0x154]
push eax
lea esi, [ebp + 0x158]
push str.NWN_04i.tga
push esi
mov dword [ebp + 0x150], 1
call fcn.006fadb0
push 0x73d5b0
push esi
call fcn.006fad9d
add esp, 0x14
test eax, eax
mov bl, 0x61
je 0x6227c9
cmp bl, 0x7a
jg 0x6227bf
push eax
call fcn.006facf0
mov ecx, dword [ebp + 0x154]
movsx eax, bl
push eax
push ecx
push str.NWN_04i_c.tga
push esi
call fcn.006fadb0
push 0x73d5b0
push esi
inc bl
call fcn.006fad9d
add esp, 0x1c
test eax, eax
jne 0x622785
cmp bl, 0x7a
jle 0x6227c9
mov dword [ebp + 0x150], 0
mov eax, dword [ebp + 0x154]
inc eax
pop edi
mov dword [ebp + 0x154], eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret