Function at 0x5028c0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov edx, dword [ebp + 0x18]
movzx ecx, byte [eax + 4]
mov byte [edx + 4], cl
mov ecx, dword [eax + 0x5c]
mov dword [edx + 0x5c], ecx
mov ecx, dword [eax + 0x60]
mov dword [edx + 0x60], ecx
mov ecx, dword [eax + 0x64]
mov dword [edx + 0x64], ecx
mov ecx, dword [eax + 0x68]
mov dword [edx + 0x68], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov ecx, dword [eax + 0x44]
mov dword [edx + 0x44], ecx
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x48], ecx
movzx ecx, byte [edx + 5]
movzx ebx, byte [eax + 5]
and ecx, 0xfffffff0
and ebx, 0xf
or ecx, ebx
mov byte [edx + 5], cl
movzx ebx, byte [eax + 5]
and ecx, 0xf
mov edx, dword [ebp + 0x18]
and ebx, 0xfffffff0
or ecx, ebx
mov byte [edx + 5], cl
mov esi, dword [ebp + 0x18]
movzx ebx, byte [eax + 6]
movzx ecx, byte [esi + 6]
and ebx, 0xf
and ecx, 0xfffffff0
or ecx, ebx
mov byte [esi + 6], cl
mov esi, dword [ebp + 0x18]
movzx ebx, byte [eax + 8]
movzx ecx, byte [esi + 8]
and ebx, 1
and ecx, 0xfffffffe
or ecx, ebx
mov byte [esi + 8], cl
mov ecx, dword [eax + 0x4c]
mov esi, dword [ebp + 0x18]
cmp dword [ebp + 0x14], 0x19a
mov dword [esi + 0x4c], ecx
mov ecx, dword [eax + 0x50]
mov dword [esi + 0x50], ecx
mov ecx, dword [eax + 0x54]
mov eax, dword [eax + 0x58]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], eax
jg 0x502ba0
cmp dword [ebp + 0x14], 0x192
jge 0x502bd0
mov eax, dword [ebp + 0x14]
sub eax, 0x165
cmp eax, 0x11
jbe 0x502bd0
mov byte [ebp - 0x25], 0
xor ebx, ebx
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1b], 1
mov dword [ebp - 0x24], 0
jmp 0x502b08
cmp byte [ebp - 0x25], 0
jne 0x502b6c
movzx eax, byte [ebp - 0x19]
mov esi, 1
mov ecx, edi
cmp byte [ebp - 0x1c], 0
cmovne eax, esi
mov byte [ebp - 0x19], al
mov eax, dword [edi]
mov eax, dword [eax + 0x9c]
mov dword [esp], ebx
call eax
mov ecx, dword [eax + 4]
sub esp, 4
call fcn.005d0470
add dword [ebp - 0x24], eax
cmp dword [ebp + 0x14], 0x19b
je 0x502a76
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x6c]
test al, al
je 0x502be0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x9c]
mov dword [esp], ebx
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + 0x2c]
movzx ecx, byte [eax + 4]
and ecx, 0x3f
cmp cl, 2
je 0x502aaf
test byte [eax + 9], 0x40
mov edx, 0
movzx eax, byte [ebp - 0x1b]
cmove eax, edx
mov byte [ebp - 0x1b], al
mov eax, dword [edi]
mov ecx, edi
mov esi, 1
mov eax, dword [eax + 0x9c]
mov dword [esp], ebx
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, edi
test byte [eax + 9], 0x40
movzx eax, byte [ebp - 0x20]
cmovne eax, esi
mov byte [ebp - 0x20], al
mov eax, dword [edi]
mov eax, dword [eax + 0x9c]
mov dword [esp], ebx
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + pe_nt_image_headers32]
test al, al
movzx eax, byte [ebp - 0x1a]
cmovne eax, esi
add ebx, 1
mov byte [ebp - 0x1a], al
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x90]
cmp ebx, eax
jge 0x502c00
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x9c]
mov dword [esp], ebx
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + 0x6c]
test al, al
je 0x502a20
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x9c]
mov dword [esp], ebx
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + 0x70]
test al, al
je 0x502e70
cmp byte [ebp - 0x25], 0
mov byte [ebp - 0x27], 1
je 0x502a2a
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x9c]
mov dword [esp], ebx
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + 0x68]
movzx edx, byte [ebp - 0x26]
test al, al
mov eax, 1
cmovne edx, eax
mov byte [ebp - 0x26], dl
jmp 0x502a2a
cmp dword [ebp + 0x14], 0x19c
jne 0x5029ef
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.005021f0
sub esp, 8
mov ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov byte [ebp - 0x25], 1
jmp 0x5029f3
mov ecx, dword [ebp + 0x18]
call fcn.005d0470
cmp dword [ebp - 0x24], eax
movzx eax, byte [ebp - 0x1c]
cmovge eax, esi
mov byte [ebp - 0x1c], al
jmp 0x502a76
cmp byte [ebp - 0x1b], 0
je 0x502c49
cmp byte [ebp - 0x20], 0
je 0x502d10
cmp dword [ebp + 0x14], 0x13d
jl 0x502c37
cmp dword [ebp + 0x14], 0x143
jle 0x502d2d
mov eax, dword [ebp + 0x14]
sub eax, 0x150
cmp eax, 0x14
jbe 0x502d2d
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.005a63e0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x6c]
test al, al
jne 0x502d70
cmp dword [ebp + 0x14], 0x19b
setne al
mov ebx, eax
mov esi, eax
and bl, byte [ebp - 0x27]
jne 0x502eb0
cmp byte [ebp - 0x26], 0
jne 0x502ef4
cmp byte [ebp - 0x19], 0
jne 0x502fc0
cmp dword [ebp + 0x14], 0x19b
je 0x502fff
cmp dword [ebp - 0x24], 1
jne 0x50323c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
mov ebx, eax
je 0x503206
mov eax, esi
test al, al
je 0x502cd9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
cmp eax, 0xc
je 0x503162
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
cmp eax, 0xb
je 0x503195
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
test eax, eax
jne 0x502f7c
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], str.cannot_convert_a_void
jmp 0x502e90
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x2c]
movzx ecx, byte [eax + 4]
and ecx, 0xffffffc0
or ecx, 2
mov byte [eax + 4], cl
jmp 0x502c49
cmp byte [ebp - 0x1a], 0
jne 0x502c37
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x6c]
test al, al
jne 0x502c37
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x2c]
movzx ecx, byte [eax + 4]
or byte [eax + 9], 0x40
and ecx, 0xffffffc0
or ecx, 2
mov byte [eax + 4], cl
jmp 0x502c49
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x90]
test eax, eax
je 0x502f83
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x74]
test al, al
jne 0x502fe2
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x40]
mov ecx, edi
mov ebx, eax
mov eax, dword [edi]
call dword [eax + 0x90]
cmp ebx, eax
jne 0x50308c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x4c]
test al, al
je 0x502c5c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x58]
mov ecx, edi
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x9c]
mov dword [esp], 0
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + 0x6c]
test al, al
je 0x502e4b
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
test eax, eax
je 0x503235
mov ebx, dword [eax + 8]
sub ebx, dword [eax + 4]
sar ebx, 3
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x9c]
mov dword [esp], 0
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + 0x58]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x50322b
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
sar eax, 3
add eax, 1
cmp ebx, eax
je 0x5030b1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], 0x6cab48
jmp 0x502fa3
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], 0x6caa2c
mov edx, dword [ebp + 8]
mov ebx, 1
mov dword [esp], esi
mov dword [esp + 4], edx
call eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x4c]
test al, al
jne 0x502c73
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], 0x6cab90
mov dword [esp + 4], esi
mov dword [esp], edx
call eax
jmp 0x502bc4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x6c]
test al, al
mov ebx, eax
jne 0x502c7d
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], str.constructing_matrix_from_matrix
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x78
mov dword [esp + 4], 1
mov dword [esp], esi
call eax
mov eax, dword [edi]
mov ecx, edi
sub esp, 0x14
call dword [eax + 0x90]
cmp eax, 1
je 0x502f7c
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], str.matrix_constructed_from_matrix_can_only_have_one_argument
mov dword [esp + 4], edx
mov dword [esp], esi
call eax
jmp 0x502bc4
xor ebx, ebx
jmp 0x502bc4
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], 0x6caa4c
mov esi, dword [ebp + 8]
mov ebx, 1
mov dword [esp], edx
mov dword [esp + 4], esi
call eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], 0x6caaf2
jmp 0x502fa3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x90]
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 0x4c]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
jmp 0x502db4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
call dword [eax + 0x6c]
test al, al
je 0x5031ba
cmp dword [ebp - 0x24], 1
jne 0x503050
mov ecx, dword [ebp + 0x18]
call fcn.005d0470
cmp eax, dword [ebp - 0x24]
jg 0x503067
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
mov ebx, eax
je 0x503206
mov eax, esi
test al, al
jne 0x502cc9
jmp 0x502cd9
mov eax, esi
test al, al
je 0x503018
mov ecx, dword [ebp + 0x18]
call fcn.005d0470
cmp eax, dword [ebp - 0x24]
jle 0x502c9e
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], 0x6cac38
jmp 0x502fa3
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], 0x6caa80
jmp 0x502e90
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 4]
test esi, esi
je 0x502c5c
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
sub edx, eax
mov ebx, edx
sar ebx, 3
cmp ebx, 1
jle 0x502c5c
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5030f4
mov ecx, 2
jmp 0x5030e6
add ecx, 1
cmp ecx, ebx
je 0x502c5c
cmp dword [eax + ecx*8], 0
jne 0x5030e3
cmp edx, 0xf
jle 0x502c5c
mov ecx, eax
mov ebx, 1
mov edx, esi
jmp 0x50311e
mov ecx, dword [edx + 4]
add ebx, 1
mov eax, dword [edx + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jge 0x502c5c
mov eax, dword [ecx + ebx*8]
lea esi, [ebx*8]
test eax, eax
jne 0x503108
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x9c]
mov dword [esp], 0
call eax
mov ecx, dword [eax + 4]
sub esp, 4
mov eax, dword [ecx]
call dword [eax + 0x58]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi - 8]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 4]
mov eax, dword [edx + 4]
mov dword [eax + ebx*8], ecx
jmp 0x503108
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x70]
mov dword [esp + 4], ebx
mov ebx, esi
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], str.cannot_convert_a_sampler
mov dword [esp], edx
call eax
jmp 0x502bc4
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], str.cannot_convert_an_atomic_uint
jmp 0x502e90
mov eax, dword [ebp + 0x18]
mov ecx, edi
mov eax, dword [eax + 0x50]
mov ebx, dword [eax + 8]
sub ebx, dword [eax + 4]
mov eax, dword [edi]
sar ebx, 2
imul ebx, ebx, 0xcccccccd
call dword [eax + 0x90]
cmp eax, ebx
je 0x503012
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], 0x6cabe8
jmp 0x502e90
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6c7c69
mov dword [esp + 8], str.constructor_argument_does_not_have_a_type
jmp 0x502fa3
mov eax, 1
jmp 0x502e43
xor ebx, ebx
jmp 0x502e0e
mov eax, esi
test al, al
je 0x502c9e
jmp 0x503056