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

Disassembly:
mov eax, 0x24
call fcn.005e6090
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
lea ecx, [esp + 0x2c]
call fcn.004f5dd0
mov ebp, dword [esp + 0x38]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push esi
xor edi, edi
call dword [eax + 4]
mov edx, dword [esi]
xor eax, eax
mov ax, word [0x6f7dc4]
mov ecx, esi
push eax
call dword [edx + 0x20]
push 1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.004f1970
mov ecx, dword [esp + 0x28]
call fcn.005091a0
mov edx, dword [esi]
mov dword [esi + 0xb4], eax
xor eax, eax
mov ax, word [0x6f7dc0]
mov ecx, esi
push eax
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [esi + 0xb4]
cmp eax, 0x44
je 0x503fc4
cmp eax, 0x55
je 0x503fc4
lea ecx, [esp + 0x20]
push ecx
push 0xa
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 2
call fcn.004f5f20
mov ecx, dword [esi + 0x28]
push 0x4e
call fcn.005250f0
mov dword [esi + 0x60], 0xffffffe0
jmp 0x503fed
mov ecx, dword [esi + 0x28]
push 0x4f
call fcn.005250f0
lea edx, [esp + 0x20]
push edx
push 0xa
lea ecx, [esp + 0x30]
mov dword [esi + 0x60], 0xfffffff5
mov dword [esp + 0x28], 1
call fcn.004f5f20
push 1
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.004f22d0
mov ecx, ebx
push eax
call fcn.004eb1f0
mov ecx, dword [esi + 0x30]
xor eax, eax
cmp word [ecx + 0x16], ax
je 0x50420b
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ebx, 1
xor ebp, ebp
call fcn.00510980
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call fcn.004e2290
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
movzx eax, word [ecx + 0x16]
lea ecx, [eax + eax*2]
push 0x2c
lea ecx, [ecx*4 + 0x63c460]
call fcn.00510f20
mov eax, dword [esp + 0x10]
test ax, ax
je 0x504092
lea edx, [esp + 0x18]
push edx
movzx eax, ax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [eax + eax*2]
push 0x3a
lea ecx, [ecx*4 + 0x63c460]
call fcn.00510f20
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x20]
mov dword [esp + 0x1c], eax
jmp 0x5040b2
movzx eax, word [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [eax + eax*2]
push 0x3a
lea ecx, [ecx*4 + 0x63c460]
call fcn.00510f20
mov eax, dword [esp + 0x18]
test ax, ax
je 0x5040cf
push 0
push esi
push esi
push eax
lea ecx, [esp + 0x30]
call fcn.005113c0
mov ebx, eax
test ebx, ebx
je 0x5040e7
mov ecx, dword [esi + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push 0
push esi
push edx
call dword [eax + 0x40]
mov ebp, eax
test ebp, ebp
jne 0x5040e7
xor ebx, ebx
mov ecx, 1
call fcn.004e22d0
test ebx, ebx
je 0x5041ed
mov eax, dword [esi + 0x38]
mov ecx, ebp
mov dword [esp + 0x24], eax
call fcn.004fb140
mov ebp, eax
test ebp, ebp
je 0x504200
call fcn.004e2290
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x504135
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x80]
push eax
mov ecx, ebx
call fcn.004f2d10
jmp 0x504138
mov dword [esi + 0x38], ebp
mov eax, dword [esi + 0x30]
xor ecx, ecx
mov cx, word [eax + 6]
test cx, cx
je 0x504181
call fcn.00512b80
mov edi, eax
test edi, edi
je 0x504181
xor eax, eax
mov ax, word [edi]
cmp ax, word [0x6f7ce8]
je 0x50417a
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x50417a
xor ecx, ecx
mov cx, word [edi + 2]
push esi
push ecx
mov ecx, eax
call fcn.004f2db0
mov edi, dword [edi + 4]
test edi, edi
jne 0x504151
test ebx, ebx
je 0x50419a
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x80]
push eax
mov ecx, ebx
call fcn.004f2d10
mov ecx, 1
call fcn.004e22d0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, esi
call fcn.00503c40
mov edi, eax
cmp edi, 1
je 0x504200
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x28]
mov dword [esi + 0x38], edx
mov edi, dword [eax + 0xd8]
cmp edi, 1
je 0x504200
mov ecx, ebp
call fcn.004ecf40
mov ebp, eax
test ebp, ebp
jne 0x504111
mov ecx, dword [esp + 0x20]
call fcn.00510970
jmp 0x50421a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
call fcn.00503c40
mov edi, eax
mov ecx, dword [esp + 0x20]
call fcn.00510970
jmp 0x50421a
mov eax, dword [esp + 0x3c]
push eax
push ebp
mov ecx, esi
call fcn.00503c40
mov edi, eax
mov eax, dword [esp + 0x3c]
xor ebp, ebp
cmp eax, ebp
jne 0x504234
mov ecx, dword [esi + 0x3c]
cmp ecx, ebp
je 0x504231
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x3c], ebp
cmp edi, 1
mov edi, dword [esi + 0x28]
mov ecx, dword [edi + 0x78]
jne 0x504262
cmp ecx, ebp
je 0x50427b
call fcn.005011e0
mov eax, dword [edi + 0x78]
mov ecx, dword [eax + 0x10]
call fcn.004ed940
mov ecx, dword [edi + 0x78]
cmp ecx, ebp
je 0x504278
mov edx, dword [ecx]
push 1
call dword [edx]
jmp 0x504278
cmp ecx, ebp
je 0x50427b
call fcn.005011e0
mov ecx, dword [edi + 0x78]
cmp ecx, ebp
je 0x504278
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x78], ebp
mov ecx, dword [esi + 0x28]
call fcn.005250b0
lea ecx, [esp + 0x28]
call fcn.004f5e70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8