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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test dl, dl
je 0x502752
add esp, 0xfffffff0
call fcn.004045bc
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov esi, eax
lea eax, [ebp - 8]
call fcn.00405e38
xor eax, eax
push ebp
push 0x502dde
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 4]
mov edx, dword [ebp - 8]
call fcn.004058f0
push 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 4]
mov ecx, 8
mov edx, 0x502e0c
call fcn.00500fd4
mov edx, dword [ebp - 0x18]
lea eax, [esi + 8]
call fcn.004058f0
lea eax, [ebp - 8]
mov edx, dword [esi + 8]
call fcn.00405914
xor eax, eax
mov edx, dword [ebp - 8]
mov dl, byte [edx + eax*2]
mov ebx, eax
shl ebx, 3
lea ebx, [esi + ebx + 0xc]
push ebx
xor ecx, ecx
mov cl, dl
mov ebx, ecx
shr ebx, 7
and ebx, 1
pop edi
mov byte [edi], bl
mov ebx, eax
shl ebx, 3
lea ebx, [esi + ebx + 0xd]
push ebx
mov ebx, ecx
shr ebx, 6
and ebx, 1
pop edi
mov byte [edi], bl
mov ebx, eax
shl ebx, 3
lea ebx, [esi + ebx + 0xe]
push ebx
mov ebx, ecx
shr ebx, 5
and ebx, 1
pop edi
mov byte [edi], bl
mov ebx, eax
shl ebx, 3
lea ebx, [esi + ebx + 0xf]
push ebx
mov ebx, ecx
shr ebx, 4
and ebx, 1
pop edi
mov byte [edi], bl
mov ebx, eax
shl ebx, 3
lea ebx, [esi + ebx + 0x10]
push ebx
mov ebx, ecx
shr ebx, 3
and ebx, 1
pop edi
mov byte [edi], bl
mov ebx, eax
shl ebx, 3
lea ebx, [esi + ebx + 0x11]
push ebx
mov ebx, ecx
shr ebx, 2
and ebx, 1
pop edi
mov byte [edi], bl
mov ebx, eax
shl ebx, 3
lea ebx, [esi + ebx + 0x12]
push ebx
mov ebx, ecx
shr ebx, 1
and ebx, 1
pop edi
mov byte [edi], bl
mov ebx, eax
shl ebx, 3
lea ebx, [esi + ebx + 0x13]
push ebx
and ecx, 1
pop edx
mov byte [edx], cl
inc eax
cmp eax, 8
jne 0x5027ab
mov al, byte [esi + 0x44]
mov byte [esi + 0x4c], al
mov al, byte [esi + 0x3c]
mov byte [esi + 0x4d], al
mov al, byte [esi + 0x34]
mov byte [esi + 0x4e], al
mov al, byte [esi + 0x2c]
mov byte [esi + 0x4f], al
mov al, byte [esi + 0x24]
mov byte [esi + 0x50], al
mov al, byte [esi + 0x1c]
mov byte [esi + 0x51], al
mov al, byte [esi + 0x14]
mov byte [esi + 0x52], al
mov al, byte [esi + 0xc]
mov byte [esi + 0x53], al
mov al, byte [esi + 0x45]
mov byte [esi + 0x54], al
mov al, byte [esi + 0x3d]
mov byte [esi + 0x55], al
mov al, byte [esi + 0x35]
mov byte [esi + 0x56], al
mov al, byte [esi + 0x2d]
mov byte [esi + 0x57], al
mov al, byte [esi + 0x25]
mov byte [esi + 0x58], al
mov al, byte [esi + 0x1d]
mov byte [esi + 0x59], al
mov al, byte [esi + 0x15]
mov byte [esi + 0x5a], al
mov al, byte [esi + 0xd]
mov byte [esi + 0x5b], al
mov al, byte [esi + 0x46]
mov byte [esi + 0x5c], al
mov al, byte [esi + 0x3e]
mov byte [esi + 0x5d], al
mov al, byte [esi + 0x36]
mov byte [esi + 0x5e], al
mov al, byte [esi + 0x2e]
mov byte [esi + 0x5f], al
mov al, byte [esi + 0x26]
mov byte [esi + 0x60], al
mov al, byte [esi + 0x1e]
mov byte [esi + 0x61], al
mov al, byte [esi + 0x16]
mov byte [esi + 0x62], al
mov al, byte [esi + 0xe]
mov byte [esi + 0x63], al
mov al, byte [esi + 0x47]
mov byte [esi + 0x64], al
mov al, byte [esi + 0x3f]
mov byte [esi + 0x65], al
mov al, byte [esi + 0x37]
mov byte [esi + 0x66], al
mov al, byte [esi + 0x2f]
mov byte [esi + 0x67], al
mov al, byte [esi + 0x4a]
mov byte [esi + 0x68], al
mov al, byte [esi + 0x42]
mov byte [esi + 0x69], al
mov al, byte [esi + 0x3a]
mov byte [esi + 0x6a], al
mov al, byte [esi + 0x32]
mov byte [esi + 0x6b], al
mov al, byte [esi + 0x2a]
mov byte [esi + 0x6c], al
mov al, byte [esi + 0x22]
mov byte [esi + 0x6d], al
mov al, byte [esi + 0x1a]
mov byte [esi + 0x6e], al
mov al, byte [esi + 0x12]
mov byte [esi + 0x6f], al
mov al, byte [esi + 0x49]
mov byte [esi + 0x70], al
mov al, byte [esi + 0x41]
mov byte [esi + 0x71], al
mov al, byte [esi + 0x39]
mov byte [esi + 0x72], al
mov al, byte [esi + 0x31]
mov byte [esi + 0x73], al
mov al, byte [esi + 0x29]
mov byte [esi + 0x74], al
mov al, byte [esi + 0x21]
mov byte [esi + 0x75], al
mov al, byte [esi + 0x19]
mov byte [esi + 0x76], al
mov al, byte [esi + 0x11]
mov byte [esi + 0x77], al
mov al, byte [esi + 0x48]
mov byte [esi + 0x78], al
mov al, byte [esi + 0x40]
mov byte [esi + 0x79], al
mov al, byte [esi + 0x38]
mov byte [esi + 0x7a], al
mov al, byte [esi + 0x30]
mov byte [esi + 0x7b], al
mov al, byte [esi + 0x28]
mov byte [esi + 0x7c], al
mov al, byte [esi + 0x20]
mov byte [esi + 0x7d], al
mov al, byte [esi + 0x18]
mov byte [esi + 0x7e], al
mov al, byte [esi + 0x10]
mov byte [esi + 0x7f], al
mov al, byte [esi + 0x27]
mov byte [esi + 0x80], al
mov al, byte [esi + 0x1f]
mov byte [esi + 0x81], al
mov al, byte [esi + 0x17]
mov byte [esi + 0x82], al
mov al, byte [esi + 0xf]
mov byte [esi + 0x83], al
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x517848
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
xor edx, edx
mov dl, al
dec edx
test edx, edx
jl 0x502a08
inc edx
mov cl, byte [esi + 0x4c]
mov al, byte [esi + 0x68]
mov byte [ebp - 9], al
xor eax, eax
mov bl, byte [esi + eax + 0x4d]
mov byte [esi + eax + 0x4c], bl
mov bl, byte [esi + eax + 0x69]
mov byte [esi + eax + 0x68], bl
inc eax
cmp eax, 0x1b
jne 0x5029e3
mov byte [esi + 0x67], cl
mov al, byte [ebp - 9]
mov byte [esi + 0x83], al
dec edx
jne 0x5029d8
mov al, byte [esi + 0x59]
mov byte [esi + 0x384], al
mov al, byte [esi + 0x5c]
mov byte [esi + 0x385], al
mov al, byte [esi + 0x56]
mov byte [esi + 0x386], al
mov al, byte [esi + 0x63]
mov byte [esi + 0x387], al
mov al, byte [esi + 0x4c]
mov byte [esi + 0x388], al
mov al, byte [esi + 0x50]
mov byte [esi + 0x389], al
mov al, byte [esi + 0x4e]
mov byte [esi + 0x38a], al
mov al, byte [esi + 0x67]
mov byte [esi + 0x38b], al
mov al, byte [esi + 0x5a]
mov byte [esi + 0x38c], al
mov al, byte [esi + 0x51]
mov byte [esi + 0x38d], al
mov al, byte [esi + 0x60]
mov byte [esi + 0x38e], al
mov al, byte [esi + 0x55]
mov byte [esi + 0x38f], al
mov al, byte [esi + 0x62]
mov byte [esi + 0x390], al
mov al, byte [esi + 0x5e]
mov byte [esi + 0x391], al
mov al, byte [esi + 0x57]
mov byte [esi + 0x392], al
mov al, byte [esi + 0x4f]
mov byte [esi + 0x393], al
mov al, byte [esi + 0x65]
mov byte [esi + 0x394], al
mov al, byte [esi + 0x53]
mov byte [esi + 0x395], al
mov al, byte [esi + 0x5b]
mov byte [esi + 0x396], al
mov al, byte [esi + 0x52]
mov byte [esi + 0x397], al
mov al, byte [esi + 0x66]
mov byte [esi + 0x398], al
mov al, byte [esi + 0x5f]
mov byte [esi + 0x399], al
mov al, byte [esi + 0x58]
mov byte [esi + 0x39a], al
mov al, byte [esi + 0x4d]
mov byte [esi + 0x39b], al
mov al, byte [esi + 0x74]
mov byte [esi + 0x39c], al
mov al, byte [esi + 0x7f]
mov byte [esi + 0x39d], al
mov al, byte [esi + 0x6a]
mov byte [esi + 0x39e], al
mov al, byte [esi + 0x70]
mov byte [esi + 0x39f], al
mov al, byte [esi + 0x7a]
mov byte [esi + 0x3a0], al
mov al, byte [esi + 0x82]
mov byte [esi + 0x3a1], al
mov al, byte [esi + 0x69]
mov byte [esi + 0x3a2], al
mov al, byte [esi + 0x73]
mov byte [esi + 0x3a3], al
mov al, byte [esi + 0x7e]
mov byte [esi + 0x3a4], al
mov al, byte [esi + 0x78]
mov byte [esi + 0x3a5], al
mov al, byte [esi + 0x6c]
mov byte [esi + 0x3a6], al
mov al, byte [esi + 0x7b]
mov byte [esi + 0x3a7], al
mov al, byte [esi + 0x77]
mov byte [esi + 0x3a8], al
mov al, byte [esi + 0x7c]
mov byte [esi + 0x3a9], al
mov al, byte [esi + 0x72]
mov byte [esi + 0x3aa], al
mov al, byte [esi + 0x83]
mov byte [esi + 0x3ab], al
mov al, byte [esi + 0x6d]
mov byte [esi + 0x3ac], al
mov al, byte [esi + 0x80]
mov byte [esi + 0x3ad], al
mov al, byte [esi + 0x79]
mov byte [esi + 0x3ae], al
mov al, byte [esi + 0x75]
mov byte [esi + 0x3af], al
mov al, byte [esi + 0x7d]
mov byte [esi + 0x3b0], al
mov al, byte [esi + 0x6f]
mov byte [esi + 0x3b1], al
mov al, byte [esi + 0x68]
mov byte [esi + 0x3b2], al
mov al, byte [esi + 0x6b]
mov byte [esi + 0x3b3], al
mov eax, dword [ebp - 0x10]
cmp eax, 0xf
ja case.default.0x502bcd
jmp dword [eax*4 + 0x502bd4]
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x84], dl
inc eax
cmp eax, 0x30
jne 0x502c16
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0xb4], dl
inc eax
cmp eax, 0x30
jne 0x502c31
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0xe4], dl
inc eax
cmp eax, 0x30
jne 0x502c4c
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x114], dl
inc eax
cmp eax, 0x30
jne 0x502c67
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x144], dl
inc eax
cmp eax, 0x30
jne 0x502c82
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x174], dl
inc eax
cmp eax, 0x30
jne 0x502c9d
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x1a4], dl
inc eax
cmp eax, 0x30
jne 0x502cb8
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x1d4], dl
inc eax
cmp eax, 0x30
jne 0x502cd3
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x204], dl
inc eax
cmp eax, 0x30
jne 0x502cee
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x234], dl
inc eax
cmp eax, 0x30
jne 0x502d09
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x264], dl
inc eax
cmp eax, 0x30
jne 0x502d24
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x294], dl
inc eax
cmp eax, 0x30
jne 0x502d3c
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x2c4], dl
inc eax
cmp eax, 0x30
jne 0x502d54
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x2f4], dl
inc eax
cmp eax, 0x30
jne 0x502d6c
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x324], dl
inc eax
cmp eax, 0x30
jne 0x502d84
jmp case.default.0x502bcd
xor eax, eax
mov dl, byte [esi + eax + 0x384]
mov byte [esi + eax + 0x354], dl
inc eax
cmp eax, 0x30
jne 0x502d9c
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0x10
jne 0x5029c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502de5
lea eax, [ebp - 0x18]
call fcn.004058b4
lea eax, [ebp - 8]
call fcn.004058b4
ret